Re: selecting other schema's as the public one from php - Mailing list pgsql-novice

From Sean Davis
Subject Re: selecting other schema's as the public one from php
Date
Msg-id 46F2BC18.1090107@mail.nih.gov
Whole thread Raw
In response to selecting other schema's as the public one from php  (Michael Cochez <michaelcochez@yahoo.com>)
Responses Re: selecting other schema's as the public one from php
List pgsql-novice
Michael Cochez wrote:
> Hello,
> I've created a new schema in my database but i can't select anything
> from the tables into this schema, selecting from the public schema gives
> no trouble.
> I've already tried using the postgres user so i think nothing can be
> wrong with privileges. Any suggestions?

Try this:

set search_path to NEWSCHEMA,public;

where NEWSCHEMA is the name of your new schema.  Do this BEFORE doing
anything else with the connection.  This will tell postgres to look in
NEWSCHEMA as well as the public schema.  You will need to do this with
every new connection to the database.

Sean

pgsql-novice by date:

Previous
From: Michael Cochez
Date:
Subject: selecting other schema's as the public one from php
Next
From: Michael Cochez
Date:
Subject: Re: selecting other schema's as the public one from php