Re: authentication/t/001_password.pl trashes ~/.psql_history

2023-12-23 Thread Daniel Gustafsson
> On 23 Dec 2023, at 17:52, Tom Lane wrote: > > Andrew Dunstan writes: >> On 2023-12-22 Fr 17:11, Tom Lane wrote: >>> After studying this some more, my conclusion is that BackgroundPsql.pm >>> failed to borrow as much as it should have from 010_tab_completion.pl. >>> Specifically, we want all

Re: authentication/t/001_password.pl trashes ~/.psql_history

2023-12-23 Thread Tom Lane
Andrew Dunstan writes: > On 2023-12-22 Fr 17:11, Tom Lane wrote: >> After studying this some more, my conclusion is that BackgroundPsql.pm >> failed to borrow as much as it should have from 010_tab_completion.pl. >> Specifically, we want all the environment-variable changes that that >> script per

Re: authentication/t/001_password.pl trashes ~/.psql_history

2023-12-23 Thread Andrew Dunstan
On 2023-12-22 Fr 17:11, Tom Lane wrote: I wrote: I happened to notice this stuff getting added to my .psql_history: \echo background_psql: ready SET password_encryption='scram-sha-256'; ; \echo background_psql: QUERY_SEPARATOR SET scram_iterations=42; ; \echo background_psql: QUERY_SEPARATOR \

Re: authentication/t/001_password.pl trashes ~/.psql_history

2023-12-22 Thread Tom Lane
I wrote: > I happened to notice this stuff getting added to my .psql_history: > \echo background_psql: ready > SET password_encryption='scram-sha-256'; > ; > \echo background_psql: QUERY_SEPARATOR > SET scram_iterations=42; > ; > \echo background_psql: QUERY_SEPARATOR > \password scram_role_iter >

authentication/t/001_password.pl trashes ~/.psql_history

2023-12-21 Thread Tom Lane
I happened to notice this stuff getting added to my .psql_history: \echo background_psql: ready SET password_encryption='scram-sha-256'; ; \echo background_psql: QUERY_SEPARATOR SET scram_iterations=42; ; \echo background_psql: QUERY_SEPARATOR \password scram_role_iter \q After grepping for these