Search Postgresql Archives

Re: \dT+ does not give elements ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Gauthier, Dave" <dave.gauthier@xxxxxxxxx> writes:
> SImple/quick (hopefully)

> thedb=# \dT+
>                                List of data types
> Schema |       Name        |   Internal name   | Size  | Elements | Description
> --------+-------------------+-------------------+-------+----------+-------------
> public | one_string_rec    | one_string_rec    | tuple |          |
> public | pwr_stdb_data     | pwr_stdb_data     | tuple |          |
> public | pwrrec            | pwrrec            | tuple |          |
> public | tree_template_rec | tree_template_rec | tuple |          |
> (4 rows)

> ...but no "elements".  These are all record types.  How can I see the composition of one of thest data types

Records don't have elements ... they have fields.  That column is for
elements of enum types.  If you want to see the fields of a record type,
just use "\d recordtype", as if it were a table.

			regards, tom lane

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux