Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Sql > Re: psql: no sc...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 6 Topic 3441 of 3631
Post > Topic >>

Re: psql: no schema info

by chestercyoung@[EMAIL PROTECTED] (chester c young) Apr 27, 2008 at 04:33 PM

> > however, just got burnt big time on sequences!  need to qualify
> them as
> > well, eg
> >   col1 integer default nextval( 'schema1.seq1' )
> 
> Move to something newer than 8.0.x, and this is automatic (because
> nextval's argument is actually a regclass constant).
> 
> 			regards, tom lane

using 8.2 and 8.3

here's (psychological) problem as I see it:

# set search_path=old_schema;
#
# create sequence new_schema.seq1;
#
# create table new_schema.table1(
#    col1 integer default nextval( 'seq1' )
# );

using old_schema.seq1, not new_schema.seq1

and imho to make matters more difficult to troubleshoot:

# \dt table1 -> does not show which schema for seq1



     
____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now. 
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

-- 
Sent via pgsql-sql mailing list (pgsql-sql@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
 




 6 Posts in Topic:
psql: no schema info
chestercyoung@[EMAIL PROT  2008-04-27 14:33:33 
Re: psql: no schema info
tgl@[EMAIL PROTECTED] (T  2008-04-27 18:36:59 
Re: psql: no schema info
chestercyoung@[EMAIL PROT  2008-04-27 16:33:26 
Re: psql: no schema info
dev@[EMAIL PROTECTED] (R  2008-04-28 08:30:09 
Re: psql: no schema info
chestercyoung@[EMAIL PROT  2008-04-28 10:01:37 
Re: psql: no schema info
alvherre@[EMAIL PROTECTED  2008-04-27 20:05:41 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Aug 21 23:25:17 CDT 2008.