Re: [PATCHES] Proposed patch for sequence-renaming problems - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [PATCHES] Proposed patch for sequence-renaming problems
Date
Msg-id 200510011909.j91J9Jr13956@candle.pha.pa.us
Whole thread Raw
In response to Re: [PATCHES] Proposed patch for sequence-renaming problems  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [PATCHES] Proposed patch for sequence-renaming problems
List pgsql-hackers
Tom Lane wrote:
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > Tom Lane wrote:
> >> Does that sound like a workable compromise?
> 
> > Personally, I _love_ it.  I hope others do as well.  :-)
> 
> OK, I'll work up a patch.

Here is a query that shows nextval(::text) usage as defaults:
SELECT    n.nspname, c.relname, a.attname, d.adsrcFROM    pg_namespace n, pg_class c, pg_attribute a, pg_attrdef dWHERE
  n.oid = c.relnamespace AND    c.oid = a.attrelid AND    a.attrelid = d.adrelid AND    a.attnum = d.adnum AND
d.adsrc~ '.*nextval\\(''[^'']*''::TEXT\\)';
 

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: effective SELECT from child tables
Next
From: Bruce Momjian
Date:
Subject: Re: [PATCHES] Proposed patch for sequence-renaming problems