Re: [HACKERS] Identification of serial fields

2003-08-03 Thread Carlos Guzman Alvarez
Hello: Finally after some tests i'm doing this: SELECT pg_namespace.nspname AS TABLE_SCHEMA, pg_class.relname AS TABLE_NAME, pg_attribute.attname AS COLUMN_NAME, pg_attribute.atttypid AS DATA_TYPE, pg_attribute.attlen AS COLUMN_SIZE, pg_attribute.attndims AS COLUMN_DIMENSIONS, pg_attribute.attnum

Re: [HACKERS] Identification of serial fields

2003-08-02 Thread Carlos Guzman Alvarez
Hello: Thanks very much i will try it and comment the results here :) This is was i'm finally using for retirve column information: SELECT pg_namespace.nspname AS TABLE_SCHEMA, pg_class.relname AS TABLE_NAME, pg_attribute.attname AS COLUMN_NAME, pg_attribute.atttypid AS DATA_TYPE, pg_attribute.at

Re: [HACKERS] Identification of serial fields

2003-08-02 Thread Carlos Guzman Alvarez
Hello: In SERIAL columns the sequence depends on the column, so the association can be gathered from pg_depend. Check for a relation between a sequence and column of a table where the deptype = 'i'. (Taken from pg_dump) Thanks very much i will try it and comment the results here :) -- Best re

Re: [HACKERS] Identification of serial fields

2003-08-02 Thread Rod Taylor
On Sat, 2003-08-02 at 17:19, Carlos Guzman Alvarez wrote: > Hello: > > I continue to be working in my .NET Data provider for postgres 7.4, i > want to know if there are a simple way for identify autoincrement > fields, i see that for serial and big serial fields the default value is > 'nextval(

[HACKERS] Identification of serial fields

2003-08-02 Thread Carlos Guzman Alvarez
Hello: I continue to be working in my .NET Data provider for postgres 7.4, i want to know if there are a simple way for identify autoincrement fields, i see that for serial and big serial fields the default value is 'nextval(...)' this can be a way for know it but i want to know if there are a