RE: pg_recvlogical requires -d but not described on the documentation - Mailing list pgsql-hackers

From Hayato Kuroda (Fujitsu)
Subject RE: pg_recvlogical requires -d but not described on the documentation
Date
Msg-id OSCPR01MB149660CCE2ADCC54A11F57E09F5D92@OSCPR01MB14966.jpnprd01.prod.outlook.com
Whole thread Raw
In response to Re: pg_recvlogical requires -d but not described on the documentation  (Fujii Masao <masao.fujii@oss.nttdata.com>)
Responses Re: pg_recvlogical requires -d but not described on the documentation
List pgsql-hackers
Dear Fujii-san,

> It looks like commit 0c013e08cfb introduced a bug that causes "pg_recvlogical
> --drop-slot"
> without --dbname to check whether it's connected to a specific database and fail
> if it's not.
> 
> This commit was added before 9.5, while pg_recvlogical was introduced in 9.4. On
> my env,
> "pg_recvlogical --drop-slot" without --dbname worked as expected in 9.4 but
> started
> failing in 9.5 or later.
> 
> So, I think the proper fix is to avoid raising a fatal error even when not connected
> to
> a specific database in --drop-slot action.

+1. I created patch to fix it. 0001 was completely same as you did.

Best regards,
Hayato Kuroda
FUJITSU LIMITED


Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Add Pipelining support in psql
Next
From: Jeff Davis
Date:
Subject: Re: Update Unicode data to Unicode 16.0.0