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

Commit953f919

Browse files
committed
add guc to conf.sample, add more comments
1 parentc15789e commit953f919

File tree

11 files changed

+253
-191
lines changed

11 files changed

+253
-191
lines changed

‎src/backend/commands/dbcommands.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1125,7 +1125,7 @@ movedb(const char *dbname, const char *tblspcname)
11251125
AccessExclusiveLock);
11261126
return;
11271127
}
1128-
1128+
11291129
src_compressed=is_tablespace_compressed(src_tblspcoid);
11301130
dst_compressed=is_tablespace_compressed(dst_tblspcoid);
11311131

@@ -1232,7 +1232,6 @@ movedb(const char *dbname, const char *tblspcname)
12321232
else
12331233
copydir(src_dbpath,dst_dbpath, false);
12341234

1235-
12361235
/*
12371236
* Record the filesystem change in XLOG
12381237
*/

‎src/backend/commands/tablespace.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,8 @@ CreateTableSpace(CreateTableSpaceStmt *stmt)
380380
/* Post creation hook for new tablespace */
381381
InvokeObjectPostCreateHook(TableSpaceRelationId,tablespaceoid,0);
382382

383-
create_tablespace_directories(location,tablespaceoid,getBoolOption(stmt->options,"compression", false));
383+
create_tablespace_directories(location,tablespaceoid,
384+
getBoolOption(stmt->options,"compression", false));
384385

385386
/* Record the filesystem change in XLOG */
386387
{
@@ -587,7 +588,8 @@ DropTableSpace(DropTableSpaceStmt *stmt)
587588
*to the specified directory
588589
*/
589590
staticvoid
590-
create_tablespace_directories(constchar*location,constOidtablespaceoid,boolcompressed)
591+
create_tablespace_directories(constchar*location,
592+
constOidtablespaceoid,boolcompressed)
591593
{
592594
char*linkloc;
593595
char*location_with_version_dir;
@@ -1064,7 +1066,8 @@ AlterTableSpaceOptions(AlterTableSpaceOptionsStmt *stmt)
10641066

10651067
if (compressed ^is_tablespace_compressed(tablespaceoid))
10661068
{
1067-
char*tbsdir=psprintf("pg_tblspc/%u/%s",tablespaceoid,TABLESPACE_VERSION_DIRECTORY);
1069+
char*tbsdir=psprintf("pg_tblspc/%u/%s",
1070+
tablespaceoid,TABLESPACE_VERSION_DIRECTORY);
10681071

10691072
if (!directory_is_empty(tbsdir))
10701073
ereport(ERROR,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp