Nested Transactions

Поиск
Список
Период
Сортировка
От cbroussard@liquiddatainc.com (Chris)
Тема Nested Transactions
Дата
Msg-id 89b6b185.0203072312.a830c8d@posting.google.com
обсуждение исходный текст
Ответы Re: Nested Transactions  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-general
i'm trying to accomplish the following task:

begin transaction;
        begin work;
                create table xyz(
                  id int
                );
        commit work;
        select * from xyz;
rollback transaction;
select * from xyz;  // should say database object doesn't exist

however i'm failing to be able to do this?? is there a specific reason?

I know in MSSQL you can say:

begin transaction
    begin transaction test
        create table xyz(
            id [int]
        );
        select * from xyz
    commit transaction test
rollback transaction
select * from xyz // database object doesn't exist

Is there an equivalent?

TIA

В списке pgsql-general по дате отправления:

Предыдущее
От: news@gemini-it.postgresql.org, [removetoreply].com@postgresql.org (Neil Everton)
Дата:
Сообщение: NEWBIE: Date format/timestamp issue ?
Следующее
От: mdb002@yahoo.com (mdb)
Дата:
Сообщение: Re: Temp Tables