v / vlib / db / pg / compatibility.h
16 lines · 12 sloc · 402 bytes · 64558df76488d72a712c84feb527797862bfeb79
Raw
1
2#if !defined(PG_VERSION_NUM)
3#error VERROR_MESSAGE PG_VERSION_NUM is not defined. Please install the development headers for PostgreSQL, they are usually in a package named libpq-dev
4#endif
5
6#if PG_VERSION_NUM < 100000
7 #define CONNECTION_CHECK_WRITABLE 9
8#endif
9
10#if PG_VERSION_NUM < 100000
11 #define CONNECTION_CONSUME 10
12#endif
13
14#if PG_VERSION_NUM < 120000
15 #define CONNECTION_GSS_STARTUP 11
16#endif
17