Re: connection or query affected

Поиск
Список
Период
Сортировка
От Dennis Gearon
Тема Re: connection or query affected
Дата
Msg-id 416C1EFF.5040202@fireserve.net
обсуждение исходный текст
Ответ на Re: connection or query affected  (Steven Klassen <sklassen@commandprompt.com>)
Список 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 по дате отправления:

Предыдущее
От: Andrew Sullivan
Дата:
Сообщение: Re: Cache lookup failed for relation, when trying to DROP
Следующее
От: CSN
Дата:
Сообщение: data dir permissions and ownership