Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita2c16bd

Browse files
committed
Merge branch 'PGPROEE9_6' into PGPROEE9_6_scheduler
2 parents8e02f59 +4bc3747 commita2c16bd

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
returnSTATUS_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)

[8]ページ先頭

©2009-2025 Movatter.jp