Re: Join between databases or (???) - Mailing list pgsql-general

From Tom Lane
Subject Re: Join between databases or (???)
Date
Msg-id 18694.1101079093@sss.pgh.pa.us
Whole thread Raw
In response to Re: Join between databases or (???)  ("Net Virtual Mailing Lists" <mailinglists@net-virtual.com>)
List pgsql-general
"Net Virtual Mailing Lists" <mailinglists@net-virtual.com> writes:
> CREATE TABLE testschema.industries (
> industry_id integer DEFAULT nextval('"testschema.industries_industry_id_seq"'::text) NOT NULL,

> pg_dump created it with the double quotes, I have been modifying the dump
> to make it so appropriate things get created inside the schema, so I
> added in the testschema. part of it in this example.

Ah-hah.  You put the testschema. part in the wrong place then.  Correct
is
    nextval('"testschema"."industries_industry_id_seq"'::text)
Or you could leave out the double quotes.

            regards, tom lane

pgsql-general by date:

Previous
From: Pierre-Frédéric Caillaud
Date:
Subject: Re: COMMIT within function?
Next
From: Dawid Kuroczko
Date:
Subject: Re: COMMIT within function?