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

Commit4aa02d0

Browse files
committed
Fix temporary tablespaces for shared filesets
A likely copy/paste error in98e8b48 from back in 2004 wouldcause temp tablespace to be reset to InvalidOid if temp_tablespaceswas set to the same value as the primary tablespace in the database.This would cause shared filesets (such as for parallel hash joins)to ignore them, putting the temporary files in the default tablespaceinstead of the configured one. The bug is in the old code, but itappears to have been exposed only once we had shared filesets.Reviewed-By: Daniel GustafssonDiscussion:https://postgr.es/m/CABUevExg5YEsOvqMxrjoNvb3ApVyH+9jggWGKwTDFyFCVWczGQ@mail.gmail.comBackpatch-through: 9.5
1 parent81b244e commit4aa02d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/commands/tablespace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1354,7 +1354,7 @@ PrepareTempTablespaces(void)
13541354
*/
13551355
if (curoid==MyDatabaseTableSpace)
13561356
{
1357-
tblSpcs[numSpcs++]=InvalidOid;
1357+
tblSpcs[numSpcs++]=curoid;
13581358
continue;
13591359
}
13601360

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp