Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nV6zm-0007Tn-RR for pgsql-hackers@arkaria.postgresql.org; Fri, 18 Mar 2022 07:25:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nV6ym-0000h1-Q5 for pgsql-hackers@arkaria.postgresql.org; Fri, 18 Mar 2022 07:24:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nV6ym-0000gq-Eb for pgsql-hackers@lists.postgresql.org; Fri, 18 Mar 2022 07:24:56 +0000 Received: from mail.postgrespro.ru ([93.174.131.139]) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nV6ye-0001kZ-Qe for pgsql-hackers@postgresql.org; Fri, 18 Mar 2022 07:24:55 +0000 Received: from mail.postgrespro.ru (cyclops.postgrespro.ru [93.174.131.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mail.postgrespro.ru (Postfix) with ESMTPSA id 122B421C964E; Fri, 18 Mar 2022 10:24:47 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1647588287; bh=JweuwnMLfgFwCle0JDWmjhGiI3euugV7CJS79CHMIr0=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=gppETzI719C5RluXghLljeKBa9QN0g5J9yNffU517XG3kUrkOJUCIkoNA6tXAEwyb dG1KLURQl+KNRVnHdnJBpKnK1v7Nh5IuWKz7zo6eoYLsp1nH78AhW4I+8kOPfb9mTp eVbm9ARDy2VmaRzdbVfXzxxUXEG+a/BWhwCJZFVU= MIME-Version: 1.0 Date: Fri, 18 Mar 2022 10:24:46 +0300 From: a.sokolov@postgrespro.ru To: Daniel Gustafsson Cc: Andres Freund , Tom Lane , Greg Nancarrow , Ivan Panchenko , Teodor Sigaev , Ibrar Ahmed , vignesh C , Pavel Stehule , PostgreSQL Hackers , Amit Kapila , Masahiko Sawada Subject: Re: On login trigger: take three In-Reply-To: References: <20220312024652.lvgehszwke4hhove@alap3.anarazel.de> <20220313233350.mar5ix6cqmgaokta@alap3.anarazel.de> <81327.1647215828@sss.pgh.pa.us> <20220314000825.t7yywdubftb5cwl6@alap3.anarazel.de> <2E4E472A-69F8-4EAC-B337-3341AC2F0188@yesql.se> <20220314161049.eybdzhwdrcn5s5zc@alap3.anarazel.de> User-Agent: Roundcube Webmail/1.4.11 Message-ID: <36a32ebce64ad85fd6e07edcdcda09f4@postgrespro.ru> X-Sender: a.sokolov@postgrespro.ru Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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. Hi 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 "vagrant@WINDOWS-2019" 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 127.0.0.1/32 sspi include_realm=1 map=regress" 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/001_stream_rep.pl +++ b/src/test/recovery/t/001_stream_rep.pl @@ -14,7 +14,7 @@ my $node_primary = get_new_node('primary'); # and it needs proper authentication configuration. $node_primary->init( allows_streaming => 1, - auth_extra => [ '--create-role', 'repl_role' ]); + auth_extra => [ '--create-role', 'repl_role,regress_user' ]); $node_primary->start; my $backup_name = 'my_backup'; -- Andrey Sokolov Postgres Professional: http://www.postgrespro.com