Skip to content

Commit 3873c8f

Browse files
author
Nikita Glukhov
committed
Pass its Oid to compression method handler
1 parent 8e650a2 commit 3873c8f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/backend/commands/compressioncmds.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ GetCompressionMethodRoutine(Oid cmhandler, Oid typeid)
251251

252252
opargs.op = CMOP_GET_ROUTINE;
253253
opargs.args.getRoutine.typeid = typeid;
254+
opargs.args.getRoutine.cmhanderid = cmhandler;
254255

255256
datum = OidFunctionCall1(cmhandler, PointerGetDatum(&opargs));
256257
routine = (CompressionMethodRoutine *) DatumGetPointer(datum);

src/include/access/compression.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ typedef struct CompressionMethodOpArgs
6060
struct
6161
{
6262
Oid typeid;
63+
Oid cmhanderid;
6364
} getRoutine;
6465
} args;
6566
} CompressionMethodOpArgs;

0 commit comments

Comments
 (0)