interactive oddity for psql -c "cmd; cmd;"

From: Ed Loehr <eloehr(at)austin(dot)rr(dot)com>
To: pghackers <pgsql-hackers(at)postgresql(dot)org>
Subject: interactive oddity for psql -c "cmd; cmd;"
Date: 2000-06-08 16:42:28
Message-ID: 393FCCF4.A1EAB76B@austin.rr.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I would think this should echo *two* "INSERT <oid> 1" messages, instead
of just 1.

% createdb viewsdb
CREATE DATABASE
% psql -d viewsdb -c "create table foo(i integer); create table bar(j
integer);"
CREATE
% psql -d viewsdb -c "insert into foo(i) values (1); insert into foo(i)
values (2);"
INSERT 9968065 1
% psql -d viewsdb -c "select * from foo;"
i
---
1
2
(2 rows)

% psql -d viewsdb -c "select oid from foo;"
oid
---------
9968064
9968065
(2 rows)

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Karel Zak 2000-06-08 16:55:37 Re: crashed odbc in CVS
Previous Message Bruce Momjian 2000-06-08 16:42:05 Re: interactive oddity for psql -c "cmd; cmd;"