Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion pg_variables.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ do { \
#endif /* PG_VERSION_NUM */

/* User controlled GUCs */
bool convert_unknownoid_guc;
bool convert_unknownoid;

static HTAB *packagesHash = NULL;
Expand Down
6 changes: 6 additions & 0 deletions pg_variables.h
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,14 @@ extern bool removeObject(TransObject *object, TransObjectType type);
#define GetPackState(package) \
(((PackState *) GetActualState(package)))

#if PG_VERSION_NUM >= 190000
#define GetName(object) \
(StaticAssertVariableIsOfTypeMacro(object->transObject, TransObject), \
object->transObject.name)
#else
#define GetName(object) \
(AssertVariableIsOfTypeMacro(object->transObject, TransObject), \
object->transObject.name)
#endif

#endif /* __PG_VARIABLES_H__ */
2 changes: 1 addition & 1 deletion pg_variables_record.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ get_record_key(Datum tuple, TupleDesc tupdesc, bool *isnull)
{
HeapTupleHeader th = (HeapTupleHeader) DatumGetPointer(tuple);
bool hasnulls = th->t_infomask & HEAP_HASNULL;
bits8 *bp = th->t_bits; /* ptr to null bitmap in tuple */
uint8_t *bp = th->t_bits; /* ptr to null bitmap in tuple */
char *tp; /* ptr to tuple data */
long off; /* offset in tuple data */
int keyatt = 0;
Expand Down