aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2017-09-15 00:25:33 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2017-09-15 00:25:33 -0400
commitfba366555659fc1dc66a825196be3cc68640d289 (patch)
tree1f5071cf188af89e5e0f42e7bdfff52fe339b78f /src
parent6b65a7fe62e129d5c2b85cd74d6a91d8f7564608 (diff)
downloadpostgresql-fba366555659fc1dc66a825196be3cc68640d289.tar.gz
postgresql-fba366555659fc1dc66a825196be3cc68640d289.zip
Avoid duplicate typedef for SharedRecordTypmodRegistry.
This isn't our usual solution for such problems, and older compilers (not terribly old, either) don't like it. Per buildfarm and local testing.
Diffstat (limited to 'src')
-rw-r--r--src/include/access/session.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/access/session.h b/src/include/access/session.h
index 8376dc53127..45986208c8b 100644
--- a/src/include/access/session.h
+++ b/src/include/access/session.h
@@ -14,8 +14,8 @@
#include "lib/dshash.h"
-/* Defined in typcache.c */
-typedef struct SharedRecordTypmodRegistry SharedRecordTypmodRegistry;
+/* Avoid including typcache.h */
+struct SharedRecordTypmodRegistry;
/*
* A struct encapsulating some elements of a user's session. For now this
@@ -28,7 +28,7 @@ typedef struct Session
dsa_area *area; /* The session-scoped DSA area. */
/* State managed by typcache.c. */
- SharedRecordTypmodRegistry *shared_typmod_registry;
+ struct SharedRecordTypmodRegistry *shared_typmod_registry;
dshash_table *shared_record_table;
dshash_table *shared_typmod_table;
} Session;