Nested Transactions - Mailing list pgsql-general

From cbroussard@liquiddatainc.com (Chris)
Subject Nested Transactions
Date
Msg-id 89b6b185.0203072312.a830c8d@posting.google.com
Whole thread Raw
Responses Re: Nested Transactions
List 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 by date:

Previous
From: news@gemini-it.postgresql.org, [removetoreply].com@postgresql.org (Neil Everton)
Date:
Subject: NEWBIE: Date format/timestamp issue ?
Next
From: mdb002@yahoo.com (mdb)
Date:
Subject: Re: Temp Tables