Re: deduce sequence name from table and column

From: Louis-David Mitterrand <vindex(at)apartia(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: deduce sequence name from table and column
Date: 2005-12-20 15:36:47
Message-ID: 20051220153647.GA28076@apartia.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Dec 20, 2005 at 10:31:46AM -0500, Tom Lane wrote:
> 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

Just what I needed,
Thanks!

--
-= this .sig is not funny =-

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Leonel Nunez 2005-12-20 15:37:15 Re: About Blobs in postgresSQL
Previous Message Seneca Cunningham 2005-12-20 15:34:44 Re: out of memory during query execution