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

Attachment: signature.asc
Description: Digital signature

Reply via email to