Re: A patch for get origin from commit_ts. - Mailing list pgsql-hackers

From movead.li@highgo.ca
Subject Re: A patch for get origin from commit_ts.
Date
Msg-id 2020070710022545488010@highgo.ca
Whole thread Raw
In response to A patch for get origin from commit_ts.  ("movead.li@highgo.ca" <movead.li@highgo.ca>)
Responses Re: A patch for get origin from commit_ts.
List pgsql-hackers

>That was fast, thanks.  I have not tested the patch, but there are
>two things I missed a couple of hours back.  Why do you need
>pg_last_committed_xact_with_origin() to begin with?  Wouldn't it be
>more simple to just add a new column to pg_last_committed_xact() for
>the replication origin?  Contrary to pg_xact_commit_timestamp() that
>should not be broken for compatibility reasons because it returns only
>one value, we don't have this problem with pg_last_committed_xact() as
>it already returns one tuple with two values.
Yes make sense, changed in new patch.
 
>+{ oid => '4179', descr => 'get commit origin of a transaction',
>A second thing is that the OID of the new function should be in the
>range 8000..9999, as per the policy introduced in commit a6417078.
>src/include/catalog/unused_oids can be used to pick up a value.
Thanks, very helpful information and I have follow that.


Regards,
Highgo Software (Canada/China/Pakistan)
URL : www.highgo.ca
EMAIL: mailto:movead(dot)li(at)highgo(dot)ca

Attachment

pgsql-hackers by date:

Previous
From: Kyotaro Horiguchi
Date:
Subject: Re: min_safe_lsn column in pg_replication_slots view
Next
From: Masahiro Ikeda
Date:
Subject: change a function name in a comment correctly