Patch for checking file parameters to psql before password prompt

From: Alastair Turner <bell(at)ctrlf5(dot)co(dot)za>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Patch for checking file parameters to psql before password prompt
Date: 2012-12-02 11:37:17
Message-ID: CAFgq2fX7_VhAYXo7jHKh+S2rLHkAHO+m1vu-aFZA2uvx38CsqA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Patch for the changes discussed in
http://archives.postgresql.org/pgsql-hackers/2010-10/msg00919.php
attached (eventually ...)

In summary: If the input file (-f) doesn't exist or the ouput or log
files (-o and -l) can't be created psql exits before prompting for a
password.

Regards,

Alastair.

Attachment Content-Type Size
psql_check_file_params_before_login.patch application/octet-stream 4.9 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tatsuo Ishii 2012-12-02 13:25:35 Re: [PATCH] Patch to fix a crash of psql
Previous Message Amit kapila 2012-12-02 05:48:25 Re: Proposal for Allow postgresql.conf values to be changed via SQL