set_toast_tablespace_v0.15-fix.patch

text/x-patch

Filename: set_toast_tablespace_v0.15-fix.patch
Type: text/x-patch
Part: 0
Message: Re: patch : Allow toast tables to be moved to a different tablespace

Patch

Same data as JSON: GET /api/v1/attachments/:id/patch the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes. API reference →
Format: unified
Series: patch v0
File+
src/bin/pg_dump/pg_dump.c 1 1
diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c
index c589372..de6b359 100644
--- a/src/bin/pg_dump/pg_dump.c
+++ b/src/bin/pg_dump/pg_dump.c
@@ -8157,7 +8157,7 @@ dumpTOASTTablespace(Archive *fout, DumpOptions *dopt, TableInfo *tbinfo,
 		ArchiveEntry(fout, nilCatalogId, createDumpId(),
 					fmtId(tbinfo->dobj.name),
 					tbinfo->dobj.namespace->dobj.name,
-					tbinfo->reltoasttablespace, tbinfo->rolname,
+					tbinfo->reltablespace, tbinfo->rolname,
 					false, "TOAST TABLESPACE", SECTION_NONE,
 					query->data, "", NULL,
 					&(tbinfo->dobj.dumpId), 1,