| From: | Andres Freund <andres(at)anarazel(dot)de> |
|---|---|
| To: | Fujii Masao <masao(dot)fujii(at)gmail(dot)com> |
| Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: pg_replication_origin_xact_reset() and its argument variables |
| Date: | 2016-08-01 17:46:56 |
| Message-ID: | 20160801174656.g6ipi44zv3uzox44@alap3.anarazel.de |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On 2016-07-28 16:44:37 +0900, Fujii Masao wrote:
> diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
> index d6ed0ce..0a3d3de 100644
> --- a/doc/src/sgml/func.sgml
> +++ b/doc/src/sgml/func.sgml
> @@ -17519,7 +17519,7 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup());
> <indexterm>
> <primary>pg_replication_origin_xact_reset</primary>
> </indexterm>
> - <literal><function>pg_replication_origin_xact_reset()</function></literal>
> + <literal><function>pg_replication_origin_xact_reset(<parameter>origin_lsn</parameter> <type>pg_lsn</type>, <parameter>origin_timestamp</parameter> <type>timestamptz</type>)</function></literal>
> </entry>
> <entry>
> void
> @@ -17527,6 +17527,12 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup());
> <entry>
> Cancel the effects of
> <function>pg_replication_origin_xact_setup()</function>.
> + Note that two arguments were introduced <emphasis>by mistake</>
> + during the <productname>PostgreSQL</> 9.5 development cycle while
> + <function>pg_replication_origin_xact_reset()</function> actually
> + doesn't use them at all. Therefore, any dummy values like
> + <literal>NULL</> can be safely specified as the arguments.
> + This mistake will be fixed in a future release.
> </entry>
> </row>
I don't think NULL works, the function is marked as strict. Otherwise
that looks right.
Thanks,
Andres
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Andres Freund | 2016-08-01 17:48:01 | Re: pg_replication_origin_xact_reset() and its argument variables |
| Previous Message | Tom Lane | 2016-08-01 17:41:21 | Re: New version numbering practices |