Skip to content

Commit 0e032a2

Browse files
committed
Place "extern" declaration in the right part of pg_class.h.
errdetail_relkind_not_supported() was declared within EXPOSE_TO_CLIENT_CODE, which is mistaken since that function isn't available client-side. While relatively harmless, this isn't good precedent. Discussion: https://postgr.es/m/1134562.1742507765@sss.pgh.pa.us
1 parent cd72c1b commit 0e032a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/include/catalog/pg_class.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,8 @@ MAKE_SYSCACHE(RELNAMENSP, pg_class_relname_nsp_index, 128);
231231
(relkind) == RELKIND_TOASTVALUE || \
232232
(relkind) == RELKIND_MATVIEW)
233233

234-
extern int errdetail_relkind_not_supported(char relkind);
235-
236234
#endif /* EXPOSE_TO_CLIENT_CODE */
237235

236+
extern int errdetail_relkind_not_supported(char relkind);
237+
238238
#endif /* PG_CLASS_H */

0 commit comments

Comments
 (0)