4 Copyright (C) 1999 MDlink online service center GmbH and Helge Hess
5 Copyright (C) 2000-2006 SKYRIX Software AG and Helge Hess
7 Author: Helge Hess (helge.hess@opengroupware.org)
9 This file is part of the PostgreSQL Adaptor Library
11 This library is free software; you can redistribute it and/or
12 modify it under the terms of the GNU Library General Public
13 License as published by the Free Software Foundation; either
14 version 2 of the License, or (at your option) any later version.
16 This library is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 Library General Public License for more details.
21 You should have received a copy of the GNU Library General Public
22 License along with this library; see the file COPYING.LIB.
23 If not, write to the Free Software Foundation,
24 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27 #ifndef PG_MAJOR_VERSION
28 /* PostgreSQL 7.4 and up do not have those versioning checks */
31 #define NG_HAS_NOTICE_PROCESSOR 1
32 #define NG_HAS_BINARY_TUPLES 1
34 #define NG_SET_CLIENT_ENCODING 1
37 #else /* PG_MAJOR_VERSION processing */
40 #if PG_MAJOR_VERSION >= 6 && PG_MINOR_VERSION > 3
41 # define NG_HAS_NOTICE_PROCESSOR 1
42 # define NG_HAS_BINARY_TUPLES 1
43 # define NG_HAS_FMOD 1
46 #if PG_MAJOR_VERSION >= 7 && PG_MINOR_VERSION > 3
47 # define NG_SET_CLIENT_ENCODING 1
51 #endif /* PG_MAJOR_VERSION processing */