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

Commitcfbd2af

Browse files
committed
Improve comment, per gripe from Alvaro.
1 parente4b9e65 commitcfbd2af

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

‎contrib/pg_stat_statements/pg_stat_statements.c

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* Copyright (c) 2008-2009, PostgreSQL Global Development Group
1515
*
1616
* IDENTIFICATION
17-
* $PostgreSQL: pgsql/contrib/pg_stat_statements/pg_stat_statements.c,v 1.4 2009/07/2703:34:40 tgl Exp $
17+
* $PostgreSQL: pgsql/contrib/pg_stat_statements/pg_stat_statements.c,v 1.5 2009/07/2704:09:55 tgl Exp $
1818
*
1919
*-------------------------------------------------------------------------
2020
*/
@@ -327,14 +327,16 @@ pgss_shmem_startup(void)
327327
on_shmem_exit(pgss_shmem_shutdown, (Datum)0);
328328

329329
/*
330-
* Attempt to load old statistics from the dump file.
331-
*
332-
* Note: we don't bother with locks here, because there should be no other
333-
* processes running when this is called.
330+
* Attempt to load old statistics from the dump file, if this is the
331+
* first time through and we weren't told not to.
334332
*/
335333
if (found|| !pgss_save)
336334
return;
337335

336+
/*
337+
* Note: we don't bother with locks here, because there should be no other
338+
* processes running when this code is reached.
339+
*/
338340
file=AllocateFile(PGSS_DUMP_FILE,PG_BINARY_R);
339341
if (file==NULL)
340342
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp