postgresql/src
Peter Eisentraut aca61f7e5f Use LOCKMODE in parse_relation.c/.h
There were a couple of comments in parse_relation.c

> Note: properly, lockmode should be declared LOCKMODE not int, but that
> would require importing storage/lock.h into parse_relation.h.  Since
> LOCKMODE is typedef'd as int anyway, that seems like overkill.

but actually LOCKMODE has been in storage/lockdefs.h for a while,
which is intentionally a more narrow header.  So we can include that
one in parse_relation.h and just use LOCKMODE normally.

An alternative would be to add a duplicate typedef into
parse_relation.h, but that doesn't seem necessary here.

Reviewed-by: Andreas Karlsson <andreas@proxel.se>
Reviewed-by: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/4bcd65fb-2497-484c-bb41-83cb435eb64d%40eisentraut.org
2026-02-23 21:25:55 +01:00
..
backend Use LOCKMODE in parse_relation.c/.h 2026-02-23 21:25:55 +01:00
bin Disallow CR and LF in database, role, and tablespace names 2026-02-23 11:19:13 -05:00
common meson: allow disabling building/installation of static libraries. 2026-02-23 16:45:40 +01:00
fe_utils Disallow CR and LF in database, role, and tablespace names 2026-02-23 11:19:13 -05:00
include Use LOCKMODE in parse_relation.c/.h 2026-02-23 21:25:55 +01:00
interfaces libpq: Grease the protocol by default 2026-02-23 10:48:20 -08:00
makefiles Restore AIX support. 2026-02-23 13:34:22 -05:00
pl Fix additional fallthrough warnings from clang 2026-02-23 07:40:19 +01:00
port Restore AIX support. 2026-02-23 13:34:22 -05:00
template Restore AIX support. 2026-02-23 13:34:22 -05:00
test libpq: Grease the protocol by default 2026-02-23 10:48:20 -08:00
timezone Use fallthrough attribute instead of comment 2026-02-19 08:51:12 +01:00
tools Restore AIX support. 2026-02-23 13:34:22 -05:00
tutorial Force standard_conforming_strings to always be ON. 2026-01-21 15:08:38 -05:00
.gitignore
DEVELOPERS
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
Makefile.global.in tests: Add a test C++ extension module 2026-01-20 16:42:30 +01:00
Makefile.shlib Restore AIX support. 2026-02-23 13:34:22 -05:00
meson.build Update copyright for 2026 2026-01-01 13:24:10 -05:00
nls-global.mk Fix update-po for the PGXS case 2025-10-16 20:21:05 +02:00