Search Postgresql Archives

Re: 'default nextval()' loses schema-qualification in dump ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Arnaud Lesauvage <arnaud.listes@xxxxxxxxx> writes:
> After some research, we found in psqlODBC's log that before the restore 
> psqlODBC was getting the sequence's nextval with a schema qualified 
> call, and after the restore the call was not schema qualified.
> I checked in pg_attrdef before and after the dump/restore, and indeed 
> the "default nextval()" on this problematic table loses it's schema 
> qualification in the process.

This is a pretty inadequate description of your problem.  Let's see the
exact SQL you are dealing with.

Note that if the argument of nextval is a plain regclass constant, like
	nextval('seq'::regclass)
then the constant is in fact a reference to a specific sequence.
Whether it's displayed with a schema name depends on whether that
sequence is visible in your search_path.

			regards, tom lane

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux