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
cdaa45fd
Commit
cdaa45fd
authored
Nov 14, 2011
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run pgindent on range type files, per request from Tom.
parent
5b5985e6
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
679 additions
and
614 deletions
+679
-614
src/backend/catalog/pg_range.c
src/backend/catalog/pg_range.c
+22
-22
src/backend/commands/typecmds.c
src/backend/commands/typecmds.c
+86
-84
src/backend/utils/adt/rangetypes.c
src/backend/utils/adt/rangetypes.c
+438
-393
src/backend/utils/adt/rangetypes_gist.c
src/backend/utils/adt/rangetypes_gist.c
+133
-115
No files found.
src/backend/catalog/pg_range.c
View file @
cdaa45fd
...
...
@@ -36,23 +36,23 @@ RangeCreate(Oid rangeTypeOid, Oid rangeSubType, Oid rangeCollation,
Oid
rangeSubOpclass
,
RegProcedure
rangeCanonical
,
RegProcedure
rangeSubDiff
)
{
Relation
pg_range
;
Datum
values
[
Natts_pg_range
];
bool
nulls
[
Natts_pg_range
];
HeapTuple
tup
;
ObjectAddress
myself
;
ObjectAddress
referenced
;
Relation
pg_range
;
Datum
values
[
Natts_pg_range
];
bool
nulls
[
Natts_pg_range
];
HeapTuple
tup
;
ObjectAddress
myself
;
ObjectAddress
referenced
;
pg_range
=
heap_open
(
RangeRelationId
,
RowExclusiveLock
);
memset
(
nulls
,
0
,
Natts_pg_range
*
sizeof
(
bool
));
values
[
Anum_pg_range_rngtypid
-
1
]
=
ObjectIdGetDatum
(
rangeTypeOid
);
values
[
Anum_pg_range_rngsubtype
-
1
]
=
ObjectIdGetDatum
(
rangeSubType
);
values
[
Anum_pg_range_rngtypid
-
1
]
=
ObjectIdGetDatum
(
rangeTypeOid
);
values
[
Anum_pg_range_rngsubtype
-
1
]
=
ObjectIdGetDatum
(
rangeSubType
);
values
[
Anum_pg_range_rngcollation
-
1
]
=
ObjectIdGetDatum
(
rangeCollation
);
values
[
Anum_pg_range_rngsubopc
-
1
]
=
ObjectIdGetDatum
(
rangeSubOpclass
);
values
[
Anum_pg_range_rngsubopc
-
1
]
=
ObjectIdGetDatum
(
rangeSubOpclass
);
values
[
Anum_pg_range_rngcanonical
-
1
]
=
ObjectIdGetDatum
(
rangeCanonical
);
values
[
Anum_pg_range_rngsubdiff
-
1
]
=
ObjectIdGetDatum
(
rangeSubDiff
);
values
[
Anum_pg_range_rngsubdiff
-
1
]
=
ObjectIdGetDatum
(
rangeSubDiff
);
tup
=
heap_form_tuple
(
RelationGetDescr
(
pg_range
),
values
,
nulls
);
simple_heap_insert
(
pg_range
,
tup
);
...
...
@@ -61,40 +61,40 @@ RangeCreate(Oid rangeTypeOid, Oid rangeSubType, Oid rangeCollation,
/* record dependencies */
myself
.
classId
=
TypeRelationId
;
myself
.
objectId
=
rangeTypeOid
;
myself
.
classId
=
TypeRelationId
;
myself
.
objectId
=
rangeTypeOid
;
myself
.
objectSubId
=
0
;
referenced
.
classId
=
TypeRelationId
;
referenced
.
objectId
=
rangeSubType
;
referenced
.
classId
=
TypeRelationId
;
referenced
.
objectId
=
rangeSubType
;
referenced
.
objectSubId
=
0
;
recordDependencyOn
(
&
myself
,
&
referenced
,
DEPENDENCY_NORMAL
);
referenced
.
classId
=
OperatorClassRelationId
;
referenced
.
objectId
=
rangeSubOpclass
;
referenced
.
classId
=
OperatorClassRelationId
;
referenced
.
objectId
=
rangeSubOpclass
;
referenced
.
objectSubId
=
0
;
recordDependencyOn
(
&
myself
,
&
referenced
,
DEPENDENCY_NORMAL
);
if
(
OidIsValid
(
rangeCollation
))
{
referenced
.
classId
=
CollationRelationId
;
referenced
.
objectId
=
rangeCollation
;
referenced
.
classId
=
CollationRelationId
;
referenced
.
objectId
=
rangeCollation
;
referenced
.
objectSubId
=
0
;
recordDependencyOn
(
&
myself
,
&
referenced
,
DEPENDENCY_NORMAL
);
}
if
(
OidIsValid
(
rangeCanonical
))
{
referenced
.
classId
=
ProcedureRelationId
;
referenced
.
objectId
=
rangeCanonical
;
referenced
.
classId
=
ProcedureRelationId
;
referenced
.
objectId
=
rangeCanonical
;
referenced
.
objectSubId
=
0
;
recordDependencyOn
(
&
myself
,
&
referenced
,
DEPENDENCY_NORMAL
);
}
if
(
OidIsValid
(
rangeSubDiff
))
{
referenced
.
classId
=
ProcedureRelationId
;
referenced
.
objectId
=
rangeSubDiff
;
referenced
.
classId
=
ProcedureRelationId
;
referenced
.
objectId
=
rangeSubDiff
;
referenced
.
objectSubId
=
0
;
recordDependencyOn
(
&
myself
,
&
referenced
,
DEPENDENCY_NORMAL
);
}
...
...
src/backend/commands/typecmds.c
View file @
cdaa45fd
This diff is collapsed.
Click to expand it.
src/backend/utils/adt/rangetypes.c
View file @
cdaa45fd
This diff is collapsed.
Click to expand it.
src/backend/utils/adt/rangetypes_gist.c
View file @
cdaa45fd
This diff is collapsed.
Click to expand it.
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