Re: On login trigger: take three

From: a(dot)sokolov(at)postgrespro(dot)ru
To: Daniel Gustafsson <daniel(at)yesql(dot)se>
Cc: Andres Freund <andres(at)anarazel(dot)de>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Greg Nancarrow <gregn4422(at)gmail(dot)com>, Ivan Panchenko <wao(at)mail(dot)ru>, Teodor Sigaev <teodor(at)sigaev(dot)ru>, Ibrar Ahmed <ibrar(dot)ahmad(at)gmail(dot)com>, vignesh C <vignesh21(at)gmail(dot)com>, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>
Subject: Re: On login trigger: take three
Date: 2022-03-18 07:24:46
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Daniel Gustafsson писал 2022-03-15 23:52:

> Yeah, that was the previously posted v25 from the author (who adopted
> it from
> the original author). I took the liberty to quickly poke at the review
> comments you had left as well as the ones that I had found to try and
> progress
> the patch. 0001 should really go in it's own thread though to not hide
> it from
> anyone interested who isn't looking at this thread.
I got an error while running tests on Windows:
2022-03-17 17:30:02.458 MSK [6920] [unknown] LOG: no match in usermap
"regress" for user "regress_user" authenticated as
2022-03-17 17:30:02.458 MSK [6920] [unknown] FATAL: SSPI authentication
failed for user "regress_user"
2022-03-17 17:30:02.458 MSK [6920] [unknown] DETAIL: Connection matched
pg_hba.conf line 2: "host all all sspi include_realm=1
2022-03-17 17:30:02.526 MSK [3432] FATAL: could not receive data from
WAL stream: server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.

I propose to make such correction:
--- a/src/test/recovery/t/
+++ b/src/test/recovery/t/
@@ -14,7 +14,7 @@ my $node_primary = get_new_node('primary');
# and it needs proper authentication configuration.
allows_streaming => 1,
- auth_extra => [ '--create-role', 'repl_role' ]);
+ auth_extra => [ '--create-role', 'repl_role,regress_user'
my $backup_name = 'my_backup';

Andrey Sokolov
Postgres Professional:

In response to


Browse pgsql-hackers by date

  From Date Subject
Next Message Noah Misch 2022-03-18 07:28:37 Re: Replication slot drop message is sent after pgstats shutdown.
Previous Message Andrey V. Lepikhov 2022-03-18 07:06:57 Re: POC: GROUP BY optimization