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
f23b7914
Commit
f23b7914
authored
Jun 05, 2008
by
Alvaro Herrera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some string building in getObjectDescription.
parent
c8e0d68a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
7 deletions
+25
-7
src/backend/catalog/dependency.c
src/backend/catalog/dependency.c
+25
-7
No files found.
src/backend/catalog/dependency.c
View file @
f23b7914
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/catalog/dependency.c,v 1.7
2 2008/05/12 00:00:46
alvherre Exp $
* $PostgreSQL: pgsql/src/backend/catalog/dependency.c,v 1.7
3 2008/06/05 15:04:39
alvherre Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -2005,6 +2005,7 @@ getObjectDescription(const ObjectAddress *object)
...
@@ -2005,6 +2005,7 @@ getObjectDescription(const ObjectAddress *object)
SysScanDesc
amscan
;
SysScanDesc
amscan
;
HeapTuple
tup
;
HeapTuple
tup
;
Form_pg_amop
amopForm
;
Form_pg_amop
amopForm
;
StringInfoData
opfam
;
amopDesc
=
heap_open
(
AccessMethodOperatorRelationId
,
amopDesc
=
heap_open
(
AccessMethodOperatorRelationId
,
AccessShareLock
);
AccessShareLock
);
...
@@ -2025,10 +2026,18 @@ getObjectDescription(const ObjectAddress *object)
...
@@ -2025,10 +2026,18 @@ getObjectDescription(const ObjectAddress *object)
amopForm
=
(
Form_pg_amop
)
GETSTRUCT
(
tup
);
amopForm
=
(
Form_pg_amop
)
GETSTRUCT
(
tup
);
appendStringInfo
(
&
buffer
,
_
(
"operator %d %s of "
),
initStringInfo
(
&
opfam
);
getOpFamilyDescription
(
&
opfam
,
amopForm
->
amopfamily
);
/*
* translator: %d is the operator strategy (a number), the
* first %s is the textual form of the operator, and the second
* %s is the description of the operator family.
*/
appendStringInfo
(
&
buffer
,
_
(
"operator %d %s of %s"
),
amopForm
->
amopstrategy
,
amopForm
->
amopstrategy
,
format_operator
(
amopForm
->
amopopr
));
format_operator
(
amopForm
->
amopopr
),
getOpFamilyDescription
(
&
buffer
,
amopForm
->
amopfamily
);
opfam
.
data
);
pfree
(
opfam
.
data
);
systable_endscan
(
amscan
);
systable_endscan
(
amscan
);
heap_close
(
amopDesc
,
AccessShareLock
);
heap_close
(
amopDesc
,
AccessShareLock
);
...
@@ -2042,6 +2051,7 @@ getObjectDescription(const ObjectAddress *object)
...
@@ -2042,6 +2051,7 @@ getObjectDescription(const ObjectAddress *object)
SysScanDesc
amscan
;
SysScanDesc
amscan
;
HeapTuple
tup
;
HeapTuple
tup
;
Form_pg_amproc
amprocForm
;
Form_pg_amproc
amprocForm
;
StringInfoData
opfam
;
amprocDesc
=
heap_open
(
AccessMethodProcedureRelationId
,
amprocDesc
=
heap_open
(
AccessMethodProcedureRelationId
,
AccessShareLock
);
AccessShareLock
);
...
@@ -2062,10 +2072,18 @@ getObjectDescription(const ObjectAddress *object)
...
@@ -2062,10 +2072,18 @@ getObjectDescription(const ObjectAddress *object)
amprocForm
=
(
Form_pg_amproc
)
GETSTRUCT
(
tup
);
amprocForm
=
(
Form_pg_amproc
)
GETSTRUCT
(
tup
);
appendStringInfo
(
&
buffer
,
_
(
"function %d %s of "
),
initStringInfo
(
&
opfam
);
getOpFamilyDescription
(
&
opfam
,
amprocForm
->
amprocfamily
);
/*
* translator: %d is the function number, the first %s is the
* textual form of the function with arguments, and the second
* %s is the description of the operator family.
*/
appendStringInfo
(
&
buffer
,
_
(
"function %d %s of %s"
),
amprocForm
->
amprocnum
,
amprocForm
->
amprocnum
,
format_procedure
(
amprocForm
->
amproc
));
format_procedure
(
amprocForm
->
amproc
),
getOpFamilyDescription
(
&
buffer
,
amprocForm
->
amprocfamily
);
opfam
.
data
);
pfree
(
opfam
.
data
);
systable_endscan
(
amscan
);
systable_endscan
(
amscan
);
heap_close
(
amprocDesc
,
AccessShareLock
);
heap_close
(
amprocDesc
,
AccessShareLock
);
...
...
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