Re: connection or query affected

From: Dennis Gearon <gearond(at)fireserve(dot)net>
To: Steven Klassen <sklassen(at)commandprompt(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: connection or query affected
Date: 2004-10-12 18:14:23
Message-ID: 416C1EFF.5040202@fireserve.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Steven Klassen wrote:

> * Dennis Gearon <gearond(at)fireserve(dot)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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message CSN 2004-10-12 18:40:52 data dir permissions and ownership
Previous Message Andrew Sullivan 2004-10-12 17:56:37 Re: Cache lookup failed for relation, when trying to DROP