Skip to content

Commit a2c16bd

Browse files
committed
Merge branch 'PGPROEE9_6' into PGPROEE9_6_scheduler
2 parents 8e02f59 + 4bc3747 commit a2c16bd

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

doc/src/sgml/ref/initdb.sgml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,45 @@ doc/src/sgml/ref/initdb.sgml
369369
</variablelist>
370370
</para>
371371

372+
<para>
373+
Other options for testing 64-bit XID:
374+
375+
<variablelist>
376+
<varlistentry>
377+
<term><option>-m <replaceable class="parameter">START_MX_ID</replaceable></option></term>
378+
<term><option>--multixact-id=<replaceable class="parameter">START_MX_ID</replaceable></option></term>
379+
<listitem>
380+
<para>
381+
Specifies a start multixact id value in the hex format for new db instance to test 64-bit xids,
382+
default value is <literal>0</literal>.
383+
</para>
384+
</listitem>
385+
</varlistentry>
386+
387+
<varlistentry>
388+
<term><option>-o <replaceable class="parameter">START_MX_OFFSET</replaceable></option></term>
389+
<term><option>--multixact-offset=<replaceable class="parameter">START_MX_OFFSET</replaceable></option></term>
390+
<listitem>
391+
<para>
392+
Specifies a start multixact offset value in the decimal format for new db instance to test 64-bit xids,
393+
default value is <literal>0</literal>.
394+
</para>
395+
</listitem>
396+
</varlistentry>
397+
398+
<varlistentry>
399+
<term><option>-x <replaceable class="parameter">START_XID</replaceable></option></term>
400+
<term><option>--xid=<replaceable class="parameter">START_XID</replaceable></option></term>
401+
<listitem>
402+
<para>
403+
Specifies a start xid value in the hex format for new db instance to test 64-bit xids,
404+
default value is <literal>0</literal>.
405+
</para>
406+
</listitem>
407+
</varlistentry>
408+
</variablelist>
409+
</para>
410+
372411
<para>
373412
Other options:
374413

src/backend/postmaster/postmaster.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3895,6 +3895,7 @@ BackendStartup(Port *port)
38953895
*/
38963896
if (!pg_strong_random(&MyCancelKey, sizeof(MyCancelKey)))
38973897
{
3898+
free(bn);
38983899
ereport(LOG,
38993900
(errmsg("could not generate random query cancel key")));
39003901
return STATUS_ERROR;
@@ -5549,6 +5550,7 @@ assign_backendlist_entry(RegisteredBgWorker *rw)
55495550
*/
55505551
if (!pg_strong_random(&MyCancelKey, sizeof(MyCancelKey)))
55515552
{
5553+
free(bn);
55525554
rw->rw_crashed_at = GetCurrentTimestamp();
55535555
return false;
55545556
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy