On Wed, Jan 22, 2014 at 9:03 PM, Tom Lane <t...@sss.pgh.pa.us> wrote:
> Amit Kapila <amit.kapil...@gmail.com> writes:
>> On Wed, Jan 22, 2014 at 6:54 PM, Robert Haas <robertmh...@gmail.com> wrote:
>>> I wonder if the port number wouldn't be a better choice. And that
>>> could even be done without adding a parameter.
>> We need this for register of event source which might be done before
>> start of server.
> So? Anything which can know the value of a GUC parameter can certainly
> know the selected port number.
1. In case of registration of event source, either user has to pass the name
or it uses hard coded default value, so if we use version number along with
'PostgreSQL', it can be consistent.
I don't see any way pgevent.c can know port number to append it to default
value, am I missing something here?
2. In pg_ctl if we use port number, then if user changes it across multiple
server restarts, then it can also create a problem, as the event source
name used will be different than what the name used during registration
of event source.
Sent via pgsql-hackers mailing list (firstname.lastname@example.org)
To make changes to your subscription: