Received: from localhost (unknown [200.46.204.184]) by developer.postgresql.org (Postfix) with ESMTP id 53FBC2E006B for ; Sun, 27 Apr 2008 20:33:31 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 51240-08 for ; Sun, 27 Apr 2008 20:33:22 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from web54304.mail.re2.yahoo.com (web54304.mail.re2.yahoo.com [206.190.49.114]) by developer.postgresql.org (Postfix) with SMTP id 9EBB12E002D for ; Sun, 27 Apr 2008 20:33:28 -0300 (ADT) Received: (qmail 31682 invoked by uid 60001); 27 Apr 2008 23:33:27 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=QpDR01ysVu4+/6thIKvmDadyw3+MgpeKYefc2pbFzdaIIqAYQneArL8ua9gFXzkHLif6rR8/o+9uQXmjbtduGOWWZCyeOqH2J74PPTiXOo0rB32E0THM4XtWxNhTyZy9hZ7Z0r3gKYZu4UCb20PGNnCvYyybIzPr7NpQgeLhtUw=; X-YMail-OSG: jMvVaYQVM1lm2s6xI6cUsk1lm60wE7VJx.qg0gQHlR4PKk3mnliAl.jnXLqE6H.SmjmTL.xA7c9STmvufVzgcHdIMyb2hmVb6DXqNCxJzq5Voe2FBI1hSg-- Received: from [69.227.19.53] by web54304.mail.re2.yahoo.com via HTTP; Sun, 27 Apr 2008 16:33:26 PDT Date: Sun, 27 Apr 2008 16:33:26 -0700 (PDT) From: chester c young Subject: Re: psql: no schema info To: Tom Lane Cc: sql pgsql In-Reply-To: <23267.1209335819@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <213749.31261.qm@web54304.mail.re2.yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200804/209 X-Sequence-Number: 30748 > > 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