pg_get_serial_sequence - Mailing list pgsql-patches

From Christopher Kings-Lynne
Subject pg_get_serial_sequence
Date
Msg-id 40D674AA.9060302@familyhealth.com.au
Whole thread Raw
Responses Re: pg_get_serial_sequence  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
Hi,

Attached is a new backend function, pg_get_serial_sequence.  It allows
you get a sequence name in a format suitable for use with the sequence
functions.

Has docs and regression.

I updated pg_dump to use it as well.

Tested against 7.5 and 7.4 backends, with independent and dependent
sequences.  Handles quoting, escaping and schema-qualification.

Someone might want to run their eyes over my doc changes (I have no way
of compiling them) and check that my function is done in the most
efficient way.  (It's small!)

Chris


Attachment

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: Admin guide tablespace docs
Next
From: Christopher Kings-Lynne
Date:
Subject: Show encoding in initdb messages