From: Alvaro Herrera <alvherre@commandprompt.com>
To: johnf <jfabiani@yolo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: find the sequence name from schema, table, field
Date: Thu, 10 Jan 2008 11:12:43 -0300
Message-ID: <20080110141243.GB6465@alvh.no-ip.org> (raw)
In-Reply-To: <200801092329.31115.jfabiani@yolo.com>
References: <200801092329.31115.jfabiani@yolo.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: alvherre@commandprompt.com, jfabiani@yolo.com
Subject: Re: find the sequence name from schema, table, field
In-Reply-To: <20080110141243.GB6465@alvh.no-ip.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox