Re: find the sequence name from schema, table, field - Mailing list pgsql-admin

From Alvaro Herrera
Subject Re: find the sequence name from schema, table, field
Date
Msg-id 20080110141243.GB6465@alvh.no-ip.org
Whole thread Raw
In response to find the sequence name from schema, table, field  (johnf <jfabiani@yolo.com>)
Responses Re: find the sequence name from schema, table, field  (johnf <jfabiani@yolo.com>)
List pgsql-admin
johnf wrote:

> I have to go to the well and ask you guys how in the he_l I can determine the
> sequence name if I only have the schema name (normally 'public'), the table
> name, and the field name (normally the PK).

pg_get_serial_sequence()

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

pgsql-admin by date:

Previous
From: Richard Ray
Date:
Subject: Re: pg_dumpall --exclude
Next
From: Kevin Kempter
Date:
Subject: Re: Postgres replication