Re: deduce sequence name from table and column

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Louis-David Mitterrand <vindex(at)apartia(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: deduce sequence name from table and column
Date: 2005-12-20 15:31:46
Message-ID: 29515.1135092706@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Louis-David Mitterrand <vindex(at)apartia(dot)org> writes:
> Is there a way (from DBI) to deduce a sequence name from the table and
> column it is attached to?

Since 8.0 you can use pg_get_serial_sequence(), see
http://www.postgresql.org/docs/8.0/static/functions-info.html

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Seneca Cunningham 2005-12-20 15:34:44 Re: out of memory during query execution
Previous Message Arnulf Christl 2005-12-20 15:17:21 Re: [Mapbender-users] Re: [Freegis-list] Re: [GENERAL]