psql -1 -f - busted - Mailing list pgsql-bugs

From Stephen Frost
Subject psql -1 -f - busted
Date
Msg-id 20091022194234.GP17756@tamriel.snowman.net
Whole thread Raw
Responses Re: psql -1 -f - busted
List 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

pgsql-bugs by date:

Previous
From: Euler Taveira de Oliveira
Date:
Subject: Re: BUG #5021: ts_parse doesn't recognize email addresses with underscores
Next
From: "Dan O'Hara"
Date:
Subject: Re: BUG #5021: ts_parse doesn't recognize email addresses with underscores