Tom Lane wrote: > Bruce Momjian <[EMAIL PROTECTED]> writes: > > What value is allowing multiple queries via PQexec() > > The only argument I can think of is that it allows applications to be > sloppy about parsing a SQL script into individual commands before they > send it. (I think initdb may be guilty of exactly that BTW...) At the > same time you could argue that such sloppiness is inherently a Bad Idea.
I thought the idea was that psql was going to split multiple -c commands into separate PQexec() calls, so sloppy was OK, and if they want a single transaction, add BEGIN/END to the string. -- Bruce Momjian [EMAIL PROTECTED] EnterpriseDB http://www.enterprisedb.com + If your life is a hard drive, Christ can be your backup. + ---------------------------(end of broadcast)--------------------------- TIP 4: Have you searched our list archives? http://archives.postgresql.org