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

From johnf
Subject Re: find the sequence name from schema, table, field
Date
Msg-id 200801100712.39496.jfabiani@yolo.com
Whole thread Raw
In response to Re: find the sequence name from schema, table, field  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-admin
On Thursday 10 January 2008 06:12:43 am Alvaro Herrera wrote:
> pg_get_serial_sequence

But it only works with a serial data type.

Create a sequence "mySequence"
Create a field "myField smallint NOT NULL  DEFAULT
nextval('mysequence'::regclass)"

So given the name of the table and the name of the field. How can I find the
name of the associated squence?



--
John Fabiani

pgsql-admin by date:

Previous
From: Kevin Kempter
Date:
Subject: Re: Postgres replication
Next
From: "Scott Marlowe"
Date:
Subject: Re: Postgres replication