Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
9488aad6
Commit
9488aad6
authored
Oct 03, 2001
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove no-longer-used macros.
parent
2d6b1f29
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
62 deletions
+1
-62
src/include/parser/parse_coerce.h
src/include/parser/parse_coerce.h
+1
-62
No files found.
src/include/parser/parse_coerce.h
View file @
9488aad6
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* $Id: parse_coerce.h,v 1.3
3 2001/09/30 06:46:58 inoue
Exp $
* $Id: parse_coerce.h,v 1.3
4 2001/10/03 19:18:42 tgl
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -34,45 +34,6 @@ typedef enum CATEGORY
...
@@ -34,45 +34,6 @@ typedef enum CATEGORY
}
CATEGORY
;
}
CATEGORY
;
/* IS_BUILTIN_TYPE()
* Check for types which are in the core distribution.
* The built-in types can have more explicit support for type coersion, etc,
* since we know apriori how they should behave.
* - thomas 1998-05-13
*/
#define IS_BUILTIN_TYPE(t) \
(((t) == OIDOID) \
|| ((t) == BOOLOID) \
|| ((t) == BPCHAROID) \
|| ((t) == VARCHAROID) \
|| ((t) == TEXTOID) \
|| ((t) == INT4OID) \
|| ((t) == INT8OID) \
|| ((t) == FLOAT8OID) \
|| ((t) == NUMERICOID) \
|| ((t) == TIMESTAMPOID) \
|| ((t) == INTERVALOID) \
|| ((t) == ABSTIMEOID) \
|| ((t) == RELTIMEOID) \
|| ((t) == DATEOID) \
|| ((t) == TIMEOID) \
|| ((t) == TIMETZOID) \
|| ((t) == CHAROID) \
|| ((t) == NAMEOID) \
|| ((t) == CASHOID) \
|| ((t) == POINTOID) \
|| ((t) == LSEGOID) \
|| ((t) == LINEOID) \
|| ((t) == BOXOID) \
|| ((t) == PATHOID) \
|| ((t) == POLYGONOID) \
|| ((t) == CIRCLEOID) \
|| ((t) == INETOID) \
|| ((t) == CIDROID) \
|| ((t) == BITOID) \
|| ((t) == VARBITOID) )
/* IS_BINARY_COMPATIBLE()
/* IS_BINARY_COMPATIBLE()
* Check for types with the same underlying binary representation.
* Check for types with the same underlying binary representation.
* This allows us to cheat and directly exchange values without
* This allows us to cheat and directly exchange values without
...
@@ -104,28 +65,6 @@ typedef enum CATEGORY
...
@@ -104,28 +65,6 @@ typedef enum CATEGORY
|| ((a) == BITOID && (b) == VARBITOID) \
|| ((a) == BITOID && (b) == VARBITOID) \
|| ((a) == VARBITOID && (b) == BITOID))
|| ((a) == VARBITOID && (b) == BITOID))
/* IS_HIGHER_TYPE()
* These types are the most general in each of the type categories.
*/
#define IS_HIGHER_TYPE(t) \
(((t) == TEXTOID) \
|| ((t) == FLOAT8OID) \
|| ((t) == INTERVALOID) \
|| ((t) == TIMESTAMPOID) \
|| ((t) == POLYGONOID) \
|| ((t) == INETOID) )
/* IS_HIGHEST_TYPE()
* These types are the most general in each of the type categories.
* Since interval and timestamp overload so many functions, let's
* give timestamp the preference.
* Since text is a generic string type let's leave it out too.
*/
#define IS_HIGHEST_TYPE(t) \
(((t) == FLOAT8OID) \
|| ((t) == TIMESTAMPOID) \
|| ((t) == INTERVALOID))
extern
bool
IsPreferredType
(
CATEGORY
category
,
Oid
type
);
extern
bool
IsPreferredType
(
CATEGORY
category
,
Oid
type
);
extern
CATEGORY
TypeCategory
(
Oid
type
);
extern
CATEGORY
TypeCategory
(
Oid
type
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment