-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Define EXT_OID_START to suggest oid range for extensions.
Fix GpMatviewAuxId has duplicated oid with other extensions. All extension should use oids start from EXT_OID_START to avoid this issue. Authored-by: Zhang Mingli avamingli@gmail.com
- Loading branch information
Showing
2 changed files
with
31 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/*------------------------------------------------------------------------- | ||
* | ||
* oid_divide.h | ||
* | ||
* Portions Copyright (c) 2024-Present HashData, Inc. or its affiliates. | ||
* | ||
* | ||
* IDENTIFICATION | ||
* src/include/catalog/oid_divide.h | ||
* | ||
* NOTES | ||
* This is used to divide oid range for core and extensions | ||
* to avoid duplicated. | ||
* | ||
*------------------------------------------------------------------------- | ||
*/ | ||
|
||
#ifndef GP_OID_DIVIDE_H | ||
#define GP_OID_DIVIDE_H | ||
|
||
/* | ||
* Extensions should use Oids start from EXT_OID_START! | ||
* | ||
* To avoid duplicated oids across extensions or repos. | ||
* We strongly suggest extesions should begin from EXT_OID_START | ||
* to separate kernel and extensions. | ||
*/ | ||
#define EXT_OID_START 9932 | ||
|
||
#endif /* GP_OID_DIVIDE_H */ |