psql -1 -f - busted

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: pgsql-bugs(at)postgresql(dot)org
Subject: psql -1 -f - busted
Date: 2009-10-22 19:42:34
Message-ID: 20091022194234.GP17756@tamriel.snowman.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Greetings,

-1 appears to be ignored when '-f -' is set.

test_file contains:

set client_min_messages=error;
create schema tiger_us;

These produce different results:

BEGIN, but no COMMIT:

beren:/data3/tiger> psql -o /dev/null -e \
--no-psqlrc \
-d gis -1 -q \
--set VERBOSITY=terse \
--set AUTOCOMMIT=off \
--set ON_ERROR_STOP=true \
--set ON_ERROR_ROLLBACK=off \
-f - < test_file

BEGIN and COMMIT:

beren:/data3/tiger> psql -o /dev/null -e \
--no-psqlrc \
-d gis -1 -q \
--set VERBOSITY=terse \
--set AUTOCOMMIT=off \
--set ON_ERROR_STOP=true \
--set ON_ERROR_ROLLBACK=off \
-f test_file

Seems like -1 should work even if -f is set to stdin..

Thanks,

Stephen

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Dan O'Hara 2009-10-22 19:54:56 Re: BUG #5021: ts_parse doesn't recognize email addresses with underscores
Previous Message Euler Taveira de Oliveira 2009-10-22 19:39:36 Re: BUG #5021: ts_parse doesn't recognize email addresses with underscores