[HACKERS] No parameter values checking while creating Altersubscription...Connection - Mailing list pgsql-hackers

From tushar
Subject [HACKERS] No parameter values checking while creating Altersubscription...Connection
Date
Msg-id 25e980e2-40a6-a8f7-6908-d9ab5b72eb05@enterprisedb.com
Whole thread Raw
Responses Re: [HACKERS] No parameter values checking while creating Alter subscription...Connection  (Masahiko Sawada <sawada.mshk@gmail.com>)
List pgsql-hackers
Hi,

We usually check connection  parameter values while creating create 
subscription

\\port is WRONG

postgres=# create subscription c1 connection 'port=4000 ' publication pub;
ERROR:  could not connect to the publisher: could not connect to server: 
No such file or directory    Is the server running locally and accepting    connections on Unix domain socket
"/tmp/.s.PGSQL.4000"?
postgres=#

\\when database doesn't exist

postgres=# create subscription c1 connection 'dbname=postgre ' 
publication pub;
ERROR:  could not connect to the publisher: FATAL:  database "postgre" 
does not exist
postgres=#

but such checking is not done at the time of alter subscription .. 
connection

postgres=# alter subscription c1 connection 'port=4000';
ALTER SUBSCRIPTION
postgres=# alter subscription c1 connection 'dbname=cc';
ALTER SUBSCRIPTION

-- 
regards,tushar
EnterpriseDB  https://www.enterprisedb.com/
The Enterprise PostgreSQL Company




pgsql-hackers by date:

Previous
From: Sokolov Yura
Date:
Subject: Re: [HACKERS] Fix performance of generic atomics
Next
From: Robert Haas
Date:
Subject: Re: [HACKERS] pg_dump ignoring information_schema tables which usedin Create Publication.