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
930bce33
Commit
930bce33
authored
Nov 16, 1997
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Re-ordeer new \d command output.
parent
12fc3307
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
19 deletions
+24
-19
src/bin/psql/psql.c
src/bin/psql/psql.c
+24
-19
No files found.
src/bin/psql/psql.c
View file @
930bce33
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.10
7 1997/11/16 04:36:20
momjian Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.10
8 1997/11/16 05:32:16
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -1719,11 +1719,11 @@ HandleSlashCmds(PsqlSettings *pset,
...
@@ -1719,11 +1719,11 @@ HandleSlashCmds(PsqlSettings *pset,
{
{
/* operators */
/* operators */
SendQuery
(
&
success
,
pset
,
"\
SendQuery
(
&
success
,
pset
,
"\
SELECT t0.typname AS result, \
SELECT o.oprname AS operator_, \
p.proname AS func_name, \
t0.typname AS result, \
t1.typname AS left_type, \
t1.typname AS left_type, \
t2.typname AS right_type, \
t2.typname AS right_type, \
o.oprname AS operatr, \
p.proname AS func_name, \
obj_description(o.oid) as description \
obj_description(o.oid) as description \
FROM pg_proc p, pg_type t0, \
FROM pg_proc p, pg_type t0, \
pg_type t1, pg_type t2, \
pg_type t1, pg_type t2, \
...
@@ -1733,29 +1733,34 @@ HandleSlashCmds(PsqlSettings *pset,
...
@@ -1733,29 +1733,34 @@ HandleSlashCmds(PsqlSettings *pset,
p.pronargs = 2 AND \
p.pronargs = 2 AND \
o.oprleft = t1.oid AND \
o.oprleft = t1.oid AND \
o.oprright = t2.oid \
o.oprright = t2.oid \
ORDER BY result, left_type, right_type, operatr;"
,
ORDER BY operator_, func_name, result, left_type, \
right_type;"
,
false
,
false
,
0
);
false
,
false
,
0
);
SendQuery
(
&
success
,
pset
,
"\
SendQuery
(
&
success
,
pset
,
"\
SELECT o.oprname AS left_unary, \
SELECT o.oprname AS left_unary, \
t.typname AS operand, \
p.proname AS func_name, \
r.typname AS return_type, \
t0.typname AS return_type, \
t1.typname AS operand, \
obj_description(o.oid) as description \
obj_description(o.oid) as description \
FROM pg_operator o, pg_type t, pg_type r \
FROM pg_operator o, pg_proc p, pg_type t0, pg_type t1 \
WHERE o.oprkind = 'l' AND \
WHERE RegprocToOid(o.oprcode) = p.oid AND \
o.oprright = t.oid AND \
o.oprresult = t0.oid AND \
o.oprresult = r.oid \
o.oprkind = 'l' AND \
ORDER BY operand;"
,
o.oprright = t1.oid \
ORDER BY left_unary, func_name, return_type, operand;"
,
false
,
false
,
0
);
false
,
false
,
0
);
SendQuery
(
&
success
,
pset
,
"\
SendQuery
(
&
success
,
pset
,
"\
SELECT o.oprname AS right_unary, \
SELECT o.oprname AS right_unary, \
t.typname AS operand, \
p.proname AS func_name, \
r.typname AS return_type, \
t0.typname AS return_type, \
t1.typname AS operand, \
obj_description(o.oid) as description \
obj_description(o.oid) as description \
FROM pg_operator o, pg_type t, pg_type r \
FROM pg_operator o, pg_proc p, pg_type t0, pg_type t1 \
WHERE o.oprkind = 'r' AND \
WHERE RegprocToOid(o.oprcode) = p.oid AND \
o.oprleft = t.oid AND \
o.oprresult = t0.oid AND \
o.oprresult = r.oid \
o.oprkind = 'r' AND \
ORDER BY operand;"
,
o.oprleft = t1.oid \
ORDER BY right_unary, func_name, return_type, operand;"
,
false
,
false
,
0
);
false
,
false
,
0
);
}
}
else
if
(
strncmp
(
cmd
,
"ds"
,
2
)
==
0
)
else
if
(
strncmp
(
cmd
,
"ds"
,
2
)
==
0
)
...
...
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