Skip to content

Commit 953f919

Browse files
committed
add guc to conf.sample, add more comments
1 parent c15789e commit 953f919

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
static void
590-
create_tablespace_directories(const char *location, const Oid tablespaceoid, bool compressed)
591+
create_tablespace_directories(const char *location,
592+
const Oid tablespaceoid, bool compressed)
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy