View Single Post

   
  #2 (permalink)  
Old 04-10-2008, 08:18 AM
Alvaro Herrera
 
Posts: n/a
Default 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

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Reply With Quote