Skip to content

Commit

Permalink
Fix thinko in previous commit. Specifically, fix the precompiler test…
Browse files Browse the repository at this point in the history
… so that minor releases of pg13 (13.1, etc) do not get code generated as meant for pg14+
  • Loading branch information
jconway committed Aug 5, 2021
1 parent 8525d8e commit 719fdc4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fileutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,11 @@ pgnodemx_check_role(void)
errmsg("role %s does not exist", PGNODEMX_MONITOR_ROLE)));
#else /* PG_VERSION_NUM >= 100000 */
#define PGNODEMX_MONITOR_ROLE "pg_monitor"
#if PG_VERSION_NUM > 130000
#if PG_VERSION_NUM >= 140000
Oid checkoid = ROLE_PG_MONITOR;
#else /* PG_VERSION_NUM <= 130000 */
#else /* PG_VERSION_NUM < 140000 */
Oid checkoid = DEFAULT_ROLE_MONITOR;
#endif /* PG_VERSION_NUM > 130000 */
#endif /* >= 140000 */
#endif /* PG_VERSION_NUM < 100000 */

/* Limit use to members of the specified role */
Expand Down

0 comments on commit 719fdc4

Please sign in to comment.