Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Make cstore compile under PG 11 * Modify truncate tests for output differences in PG11 Add an alternate output file for pre PG11 * Change the tupleDescriptor access method PG11 changed TupleDesc copying to not copy defaults and constraints. We changed the way to access TupleDesc data and kept access to default values for columns. * Address pykello's feedback.
- Loading branch information
Showing
10 changed files
with
380 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/*------------------------------------------------------------------------- | ||
* | ||
* cstore_version_compat.h | ||
* | ||
* Compatibility macros for writing code agnostic to PostgreSQL versions | ||
* | ||
* Copyright (c) 2018, Citus Data, Inc. | ||
* | ||
* $Id$ | ||
* | ||
*------------------------------------------------------------------------- | ||
*/ | ||
|
||
#ifndef CSTORE_COMPAT_H | ||
#define CSTORE_COMPAT_H | ||
|
||
#if PG_VERSION_NUM < 100000 | ||
|
||
/* Accessor for the i'th attribute of tupdesc. */ | ||
#define TupleDescAttr(tupdesc, i) ((tupdesc)->attrs[(i)]) | ||
|
||
#endif | ||
|
||
#if PG_VERSION_NUM < 110000 | ||
#define ALLOCSET_DEFAULT_SIZES ALLOCSET_DEFAULT_MINSIZE, ALLOCSET_DEFAULT_INITSIZE, ALLOCSET_DEFAULT_MAXSIZE | ||
#define ACLCHECK_OBJECT_TABLE ACL_KIND_CLASS | ||
#else | ||
#define ACLCHECK_OBJECT_TABLE OBJECT_TABLE | ||
|
||
#define ExplainPropertyLong(qlabel, value, es) \ | ||
ExplainPropertyInteger(qlabel, NULL, value, es) | ||
#endif | ||
|
||
#define PREVIOUS_UTILITY (PreviousProcessUtilityHook != NULL \ | ||
? PreviousProcessUtilityHook : standard_ProcessUtility) | ||
#if PG_VERSION_NUM >= 100000 | ||
#define CALL_PREVIOUS_UTILITY(parseTree, queryString, context, paramListInfo, \ | ||
destReceiver, completionTag) \ | ||
PREVIOUS_UTILITY(plannedStatement, queryString, context, paramListInfo, \ | ||
queryEnvironment, destReceiver, completionTag) | ||
#else | ||
#define CALL_PREVIOUS_UTILITY(parseTree, queryString, context, paramListInfo, \ | ||
destReceiver, completionTag) \ | ||
PREVIOUS_UTILITY(parseTree, queryString, context, paramListInfo, destReceiver, \ | ||
completionTag) | ||
#endif | ||
|
||
|
||
|
||
#endif /* CSTORE_COMPAT_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.