pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: pgmail@joh.to
To: pgsql-bugs@postgresql.org
Subject: BUG #7635: psql -1 and \connect
Date: Thu, 01 Nov 2012 13:12:53 +0000
Message-ID: <E1TTuZp-00008O-4e@wrigleys.postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      7635
Logged by:          Marko Tiikkaja
Email address:      pgmail@joh.to
PostgreSQL version: 9.1.6
Operating system:   OSX something
Description:        

Hi,

With a simple script like this:

\connect postgres
CREATE TABLE foo();
ERROR_HERE;

You get output like this:

You are now connected to database "postgres" as user "postgres".
CREATE TABLE
psql:singletxn.sql:3: ERROR:  syntax error at or near "ERROR_HERE"
LINE 1: ERROR_HERE;
        ^
psql:singletxn.sql:0: WARNING:  there is no transaction in progress

Which isn't really what I expected :-(

I know it's not clear what to do with --single-transaction if a script is
\connecting to multiple databases in a single file, but IMHO it should at
least work correctly for the single database case.





view thread (3+ messages)  latest in thread

Message-ID: <E1TTuZp-00008O-4e@wrigleys.postgresql.org>
Permalink:  ../E1TTuZp-00008O-4e@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/E1TTuZp-00008O-4e@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: pgmail@joh.to
  Subject: Re: BUG #7635: psql -1 and \connect
  In-Reply-To: <E1TTuZp-00008O-4e@wrigleys.postgresql.org>
  References: <E1TTuZp-00008O-4e@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox