Hi Chris,

You need to start a transaction explicitly:

Session 1:

buns=# begin;
BEGIN
buns=# create table test_table (col1 int);
CREATE TABLE

Session 2:

buns=# \d test_table
Did not find any relation named "test_table".

Session 1:

buns=# commit;
COMMIT

Session 2:

buns=# \d test_table
  Table "public.test_table"
 Column |  Type   | Modifiers 
--------+---------+-----------
 col1   | integer | 

HTH.
David

-----Original Message-----
From: Chris Schneider [mailto:[EMAIL PROTECTED]
Sent: Thursday, 3 July 2003 05:26
To: [EMAIL PROTECTED]
Subject: [SQL] Inquiry From Form [pgsql]


I know this is basic, but couldn\'t find and in a hurry to know the answer.  When 
interfacing with PostgreSQL through PSQL, it appears that DML statements are 
auto-commited, that is, a change I make in one session is seen from another without 
the original session issueing a COMMIT.  Is this a result of PSQL interface and if so, 
can it be turned off.  Is PostgreSQL transactional in the sense that I can issue 
several DMLs and then ROLLBACK.  If so, how.  Thanks and sorry for the newbie question.

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

               http://archives.postgresql.org

Reply via email to