Content-Length: 269128 | pFad | http://github.com/postgrespro/postgres/commit/d00fbdc431192c3e429b3e91c43d364e5c7ba680

77 Fix use-after-ReleaseSysCache problem in ATExecAlterColumnType. · postgrespro/postgres@d00fbdc · GitHub
Skip to content

Commit d00fbdc

Browse files
committed
Fix use-after-ReleaseSysCache problem in ATExecAlterColumnType.
Introduced by commit bbe0a81. Per buildfarm member prion.
1 parent bbe0a81 commit d00fbdc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/commands/tablecmds.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11953,8 +11953,6 @@ ATExecAlterColumnType(AlteredTableInfo *tab, Relation rel,
1195311953
attTup->attalign = tform->typalign;
1195411954
attTup->attstorage = tform->typstorage;
1195511955

11956-
ReleaseSysCache(typeTuple);
11957-
1195811956
/* Setup attribute compression */
1195911957
if (rel->rd_rel->relkind == RELKIND_RELATION ||
1196011958
rel->rd_rel->relkind == RELKIND_PARTITIONED_TABLE)
@@ -11972,6 +11970,8 @@ ATExecAlterColumnType(AlteredTableInfo *tab, Relation rel,
1197211970
else
1197311971
attTup->attcompression = InvalidCompressionMethod;
1197411972

11973+
ReleaseSysCache(typeTuple);
11974+
1197511975
CatalogTupleUpdate(attrelation, &heapTup->t_self, heapTup);
1197611976

1197711977
table_close(attrelation, RowExclusiveLock);

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/d00fbdc431192c3e429b3e91c43d364e5c7ba680

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy