Re: psql "SCHEMA" switch

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Michael Glaesemann <grzm(at)seespotcode(dot)net>
Cc: Paul Silveira <plabrh1(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: psql "SCHEMA" switch
Date: 2006-12-23 03:58:37
Message-ID: 6459.1166846317@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Michael Glaesemann <grzm(at)seespotcode(dot)net> writes:
> On Dec 22, 2006, at 15:15 , Paul Silveira wrote:
>> Because psql does not have a schema switch, I had to do it this way...

> As the schema is part of the DDL, I think it's better to have it as
> part of DDL script rather than a switch for psql, either as schema-
> qualified tables in the script or using a SET search_path command in
> the SQL script.

Besides, you can get the effect already via PGOPTIONS:

PGOPTIONS="--search_path=myschema,yourschema" psql ...

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message org 2006-12-23 09:59:35 Clustering & Load Balancing & Replication
Previous Message Tom Lane 2006-12-23 03:31:28 Re: Problem with index in OR'd expression