libpq and transactions

From: Alex du Plessis <alexdup01(at)telkomsa(dot)net>
To: Postgres novice mailing list <pgsql-novice(at)postgresql(dot)org>
Subject: libpq and transactions
Date: 2006-08-11 09:03:09
Message-ID: 44DC47CD.30102@telkomsa.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hi list,

I wish to use libpq to create a new database using a sql statement
"CREATE DATABSE". However, it seems this command cannot be enclosed
within a transaction. How do I go about executing such a statement via
libpq i.e. which function should I use. (Any information would be helpful)

Thanks

Alex

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Andy Chambers 2006-08-11 11:30:35 Minimising disk writes
Previous Message Jasbinder Bali 2006-08-11 08:01:28 Re: Unable to connect to PostgreSQL 8 from PGAdmin III