Re: psql: default base and password reading

From: Thomas Lockhart <lockhart(at)fourpalms(dot)org>
To: Adam Osuchowski <adwol(at)polsl(dot)gliwice(dot)pl>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: psql: default base and password reading
Date: 2001-10-12 05:53:47
Message-ID: 3BC6856B.A2244B@fourpalms.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Adam Osuchowski wrote:
>
> Hello,
>
> in attachment I enclose patch on psql which fix two things:
>
> 1. If no database was given, template1 is assumed.

Does this change the current behavior of assuming a database name which
is the same as the user's account name? I'm not sure why the new
behavior is better.

> 2. Password is reading from terminal (/dev/tty) rather than from stdin. It
> was usable when we want to pipe sql script on psql and have set password at
> the same time. It may be turned off, by pass -i option to psql. Then, psql
> behave normally, like it is currently.

Interesting. Is this technique portable to other platforms (just asking;
I'm not sure myself)?

- Thomas

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2001-10-12 06:25:14 Re: postgresql-7.1.3 pg_ctl password authentication and startup
Previous Message Tom Lane 2001-10-12 00:17:00 Re: Efficient slicing/substring of TOAST values (for comment)