Re: schema name in SQL statement. - Mailing list pgsql-general

From Lennin Caro
Subject Re: schema name in SQL statement.
Date
Msg-id 842435.32861.qm@web59505.mail.ac4.yahoo.com
Whole thread Raw
In response to schema name in SQL statement.  ("Masis, Alexander \(US SSA\)" <alexander.masis@baesystems.com>)
List pgsql-general


--- On Tue, 8/19/08, Masis, Alexander (US SSA) <alexander.masis@baesystems.com> wrote:

> From: Masis, Alexander (US SSA) <alexander.masis@baesystems.com>
> Subject: [GENERAL] schema name in SQL statement.
> To: pgsql-general@postgresql.org
> Date: Tuesday, August 19, 2008, 10:52 PM
> I have to explicitly specify the schema name to make SQL
> statement to
> work.
> Can I set the schema before the query, or set a default
> schema?
> My current statement:
> "SELECT col FROM schema.table"
> I like to be able to use generic SQL statement like:
> "SELECT col FROM table"
>
>
>
> --
> Sent via pgsql-general mailing list
> (pgsql-general@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general

you can change the search path of the schema

SET search_path TO myschema





pgsql-general by date:

Previous
From: hubert depesz lubaczewski
Date:
Subject: Re: Time of 'pg_ctl reload'.
Next
From: "Matthew Pettis"
Date:
Subject: Re: Fwd: Restarting with pg_ctl, users, and passwords.