Re: BUG #2307: Buckup and sequences in DEFAULT part

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Kamil Giza <kamilg(at)zeto(dot)olsztyn(dot)pl>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #2307: Buckup and sequences in DEFAULT part
Date: 2006-03-09 15:12:04
Message-ID: 25046.1141917124@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Kamil Giza <kamilg(at)zeto(dot)olsztyn(dot)pl> writes:
> It's a problem because after restore, server is looking for sequence in
> schema "public" but sequence was created in schema "schema".

No, it doesn't. regclass constants don't work that way; the sequence is
identified by OID, and isn't subject to search path issues at all. You
are assuming a problem that does not exist anymore.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message eKo1 2006-03-09 20:24:20 BUG #2310: "ALTER TYPE name OWNER TO new_owner" not working
Previous Message Hans Guijt 2006-03-09 14:57:51 Re: BUG #2305: "No bufferspace available" error on large insert