Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: find the sequence name from schema, table, field



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



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group