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
8ec8fe0f
Commit
8ec8fe0f
authored
Feb 24, 2021
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Message style fix
Don't quote type name placeholders.
parent
c82d59d6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/backend/partitioning/partbounds.c
src/backend/partitioning/partbounds.c
+1
-1
src/test/regress/expected/hash_part.out
src/test/regress/expected/hash_part.out
+1
-1
No files found.
src/backend/partitioning/partbounds.c
View file @
8ec8fe0f
...
@@ -4755,7 +4755,7 @@ satisfies_hash_partition(PG_FUNCTION_ARGS)
...
@@ -4755,7 +4755,7 @@ satisfies_hash_partition(PG_FUNCTION_ARGS)
if
(
argtype
!=
key
->
parttypid
[
j
]
&&
!
IsBinaryCoercible
(
argtype
,
key
->
parttypid
[
j
]))
if
(
argtype
!=
key
->
parttypid
[
j
]
&&
!
IsBinaryCoercible
(
argtype
,
key
->
parttypid
[
j
]))
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_INVALID_PARAMETER_VALUE
),
(
errcode
(
ERRCODE_INVALID_PARAMETER_VALUE
),
errmsg
(
"column %d of the partition key has type
\"
%s
\"
, but supplied value is of type
\"
%s
\"
"
,
errmsg
(
"column %d of the partition key has type
%s, but supplied value is of type %s
"
,
j
+
1
,
format_type_be
(
key
->
parttypid
[
j
]),
format_type_be
(
argtype
))));
j
+
1
,
format_type_be
(
key
->
parttypid
[
j
]),
format_type_be
(
argtype
))));
fmgr_info_copy
(
&
my_extra
->
partsupfunc
[
j
],
fmgr_info_copy
(
&
my_extra
->
partsupfunc
[
j
],
...
...
src/test/regress/expected/hash_part.out
View file @
8ec8fe0f
...
@@ -48,7 +48,7 @@ SELECT satisfies_hash_partition('mchash'::regclass, 3, 1, NULL::int);
...
@@ -48,7 +48,7 @@ SELECT satisfies_hash_partition('mchash'::regclass, 3, 1, NULL::int);
ERROR: number of partitioning columns (2) does not match number of partition keys provided (1)
ERROR: number of partitioning columns (2) does not match number of partition keys provided (1)
-- wrong argument type
-- wrong argument type
SELECT satisfies_hash_partition('mchash'::regclass, 2, 1, NULL::int, NULL::int);
SELECT satisfies_hash_partition('mchash'::regclass, 2, 1, NULL::int, NULL::int);
ERROR: column 2 of the partition key has type
"text", but supplied value is of type "integer"
ERROR: column 2 of the partition key has type
text, but supplied value is of type integer
-- ok, should be false
-- ok, should be false
SELECT satisfies_hash_partition('mchash'::regclass, 4, 0, 0, ''::text);
SELECT satisfies_hash_partition('mchash'::regclass, 4, 0, 0, ''::text);
satisfies_hash_partition
satisfies_hash_partition
...
...
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