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

Commit0ea0afa

Browse files
committed
Add C comment about DDL changes possibly causing pg_dump errors.
1 parentea066f8 commit0ea0afa

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

‎src/bin/pg_dump/pg_dump.c

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,21 @@
1111
*script that reproduces the schema in terms of SQL that is understood
1212
*by PostgreSQL
1313
*
14+
*Note that pg_dump runs in a serializable transaction, so it sees a
15+
*consistent snapshot of the database including system catalogs.
16+
*However, it relies in part on various specialized backend functions
17+
*like pg_get_indexdef(), and those things tend to run on SnapshotNow
18+
*time, ie they look at the currently committed state. So it is
19+
*possible to get 'cache lookup failed' error if someone performs DDL
20+
*changes while a dump is happening. The window for this sort of thing
21+
*is from the beginning of the serializable transaction to
22+
*getSchemaData() (when pg_dump acquires AccessShareLock on every
23+
*table it intends to dump). It isn't very large, but it can happen.
24+
*
25+
*http://archives.postgresql.org/pgsql-bugs/2010-02/msg00187.php
26+
*
1427
* IDENTIFICATION
15-
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.576 2010/03/0320:10:48 heikki Exp $
28+
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.577 2010/03/0323:38:44 momjian Exp $
1629
*
1730
*-------------------------------------------------------------------------
1831
*/

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp