Re: connection or query affected - Mailing list pgsql-general

From Dennis Gearon
Subject Re: connection or query affected
Date
Msg-id 416C1EFF.5040202@fireserve.net
Whole thread Raw
In response to Re: connection or query affected  (Steven Klassen <sklassen@commandprompt.com>)
List pgsql-general
Steven Klassen wrote:

> * Dennis Gearon <gearond@fireserve.net> [2004-10-12 08:13:07 -0700]:
>
>
>>   turn off autocommit
>
>
> Per connection.
>
>
>>   start transaction
>>   commit transaction
>
>
> They're statements themselves that change the state of the
> connection. You start a transaction, run your queries, and then
> commit/rollback.
>
>
>>   SET schema
>
>
> It depends if you're setting your search path for subsequent queries
> which would be tracked per connection or you're actually prepending
> the schema where the table exists in the query.
>
> E.g.
>
> $dbh->query("SET search_path='my_schema'");
>
> - or -
>
> $dbh->query('SELECT foo FROM my_schema.bar WHERE active');
>
Thanks, I meant the first of the two schema related queries above.

pgsql-general by date:

Previous
From: Andrew Sullivan
Date:
Subject: Re: Cache lookup failed for relation, when trying to DROP
Next
From: CSN
Date:
Subject: data dir permissions and ownership