Skip to content

Commit

Permalink
Support full OID range
Browse files Browse the repository at this point in the history
  • Loading branch information
timchang514 committed Oct 13, 2023
1 parent b4b9644 commit d18f7de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contrib/babelfishpg_tsql/src/guc.c
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ assign_temp_oid_buffer_size(int newval, void *extra)
if (pltsql_protocol_plugin_ptr && *pltsql_protocol_plugin_ptr && (*pltsql_protocol_plugin_ptr)->set_guc_stat_var)
{
(*pltsql_protocol_plugin_ptr)->set_guc_stat_var("babelfishpg_tsql.temp_oid_buffer_size", false, NULL, newval);
temp_oid_buffer_start = InvalidOid;//(double)
temp_oid_buffer_start = InvalidOid;
}
}

Expand Down Expand Up @@ -1133,7 +1133,7 @@ define_custom_variables(void)
gettext_noop("Internal. Specifies the start range of the buffer for temp oids"),
NULL,
&temp_oid_buffer_start,
InvalidOid, 0, INT_MAX, // Eventually set to OID_MAX
InvalidOid, INT_MIN, INT_MAX, /* Add INT_MIN to size, since Oid is uint32. */
PGC_INTERNAL,
GUC_NOT_IN_SAMPLE,
NULL, NULL, NULL);
Expand All @@ -1142,7 +1142,7 @@ define_custom_variables(void)
gettext_noop("Temp oid buffer size"),
NULL,
&temp_oid_buffer_size,
65536, 1, 131072, /* What should the max size be? */
16384, 1, 65536,
PGC_USERSET,
GUC_NOT_IN_SAMPLE | GUC_DISALLOW_IN_FILE | GUC_DISALLOW_IN_AUTO_FILE,
NULL, assign_temp_oid_buffer_size, NULL);
Expand Down

0 comments on commit d18f7de

Please sign in to comment.