Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2721712

Browse files
committed
psql: Use more consistent capitalization of some output headings
1 parent651902d commit2721712

File tree

6 files changed

+143
-143
lines changed

6 files changed

+143
-143
lines changed

‎contrib/hstore_plperl/expected/create_transform.out

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ DROP FUNCTION plperl_to_hstore(val internal);
4444
CREATE EXTENSION hstore_plperl;
4545
\dx+ hstore_plperl
4646
Objects in extension "hstore_plperl"
47-
ObjectDescription
47+
Objectdescription
4848
--------------------------------------
4949
function hstore_to_plperl(internal)
5050
function plperl_to_hstore(internal)
@@ -54,7 +54,7 @@ CREATE EXTENSION hstore_plperl;
5454
ALTER EXTENSION hstore_plperl DROP TRANSFORM FOR hstore LANGUAGE plperl;
5555
\dx+ hstore_plperl
5656
Objects in extension "hstore_plperl"
57-
ObjectDescription
57+
Objectdescription
5858
-------------------------------------
5959
function hstore_to_plperl(internal)
6060
function plperl_to_hstore(internal)
@@ -63,7 +63,7 @@ Objects in extension "hstore_plperl"
6363
ALTER EXTENSION hstore_plperl ADD TRANSFORM FOR hstore LANGUAGE plperl;
6464
\dx+ hstore_plperl
6565
Objects in extension "hstore_plperl"
66-
ObjectDescription
66+
Objectdescription
6767
--------------------------------------
6868
function hstore_to_plperl(internal)
6969
function plperl_to_hstore(internal)

‎contrib/postgres_fdw/expected/postgres_fdw.out

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ ALTER FOREIGN TABLE ft1 ALTER COLUMN c1 OPTIONS (column_name 'C 1');
181181
ALTER FOREIGN TABLE ft2 ALTER COLUMN c1 OPTIONS (column_name 'C 1');
182182
\det+
183183
List of foreign tables
184-
Schema | Table | Server | FDWOptions | Description
184+
Schema | Table | Server | FDWoptions | Description
185185
--------+------------+-----------+--------------------------------------------------+-------------
186186
public | ft1 | loopback | (schema_name 'S 1', table_name 'T 1') |
187187
public | ft2 | loopback | (schema_name 'S 1', table_name 'T 1') |
@@ -6948,7 +6948,7 @@ CREATE SCHEMA import_dest1;
69486948
IMPORT FOREIGN SCHEMA import_source FROM SERVER loopback INTO import_dest1;
69496949
\det+ import_dest1.*
69506950
List of foreign tables
6951-
Schema | Table | Server | FDWOptions | Description
6951+
Schema | Table | Server | FDWoptions | Description
69526952
--------------+-------+----------+-------------------------------------------------+-------------
69536953
import_dest1 | t1 | loopback | (schema_name 'import_source', table_name 't1') |
69546954
import_dest1 | t2 | loopback | (schema_name 'import_source', table_name 't2') |
@@ -6960,59 +6960,59 @@ IMPORT FOREIGN SCHEMA import_source FROM SERVER loopback INTO import_dest1;
69606960

69616961
\d import_dest1.*
69626962
Foreign table "import_dest1.t1"
6963-
Column | Type | Collation | Nullable | Default | FDWOptions
6963+
Column | Type | Collation | Nullable | Default | FDWoptions
69646964
--------+-------------------+-----------+----------+---------+--------------------
69656965
c1 | integer | | | | (column_name 'c1')
69666966
c2 | character varying | | not null | | (column_name 'c2')
69676967
Server: loopback
6968-
FDWOptions: (schema_name 'import_source', table_name 't1')
6968+
FDWoptions: (schema_name 'import_source', table_name 't1')
69696969

69706970
Foreign table "import_dest1.t2"
6971-
Column | Type | Collation | Nullable | Default | FDWOptions
6971+
Column | Type | Collation | Nullable | Default | FDWoptions
69726972
--------+-------------------+-----------+----------+---------+--------------------
69736973
c1 | integer | | | | (column_name 'c1')
69746974
c2 | character varying | | | | (column_name 'c2')
69756975
c3 | text | POSIX | | | (column_name 'c3')
69766976
Server: loopback
6977-
FDWOptions: (schema_name 'import_source', table_name 't2')
6977+
FDWoptions: (schema_name 'import_source', table_name 't2')
69786978

69796979
Foreign table "import_dest1.t3"
6980-
Column | Type | Collation | Nullable | Default | FDWOptions
6980+
Column | Type | Collation | Nullable | Default | FDWoptions
69816981
--------+--------------------------+-----------+----------+---------+--------------------
69826982
c1 | timestamp with time zone | | | | (column_name 'c1')
69836983
c2 | typ1 | | | | (column_name 'c2')
69846984
Server: loopback
6985-
FDWOptions: (schema_name 'import_source', table_name 't3')
6985+
FDWoptions: (schema_name 'import_source', table_name 't3')
69866986

69876987
Foreign table "import_dest1.t4"
6988-
Column | Type | Collation | Nullable | Default | FDWOptions
6988+
Column | Type | Collation | Nullable | Default | FDWoptions
69896989
--------+---------+-----------+----------+---------+--------------------
69906990
c1 | integer | | | | (column_name 'c1')
69916991
Server: loopback
6992-
FDWOptions: (schema_name 'import_source', table_name 't4')
6992+
FDWoptions: (schema_name 'import_source', table_name 't4')
69936993

69946994
Foreign table "import_dest1.x 4"
6995-
Column | Type | Collation | Nullable | Default | FDWOptions
6995+
Column | Type | Collation | Nullable | Default | FDWoptions
69966996
--------+-----------------------+-----------+----------+---------+---------------------
69976997
c1 | double precision | | | | (column_name 'c1')
69986998
C 2 | text | | | | (column_name 'C 2')
69996999
c3 | character varying(42) | | | | (column_name 'c3')
70007000
Server: loopback
7001-
FDWOptions: (schema_name 'import_source', table_name 'x 4')
7001+
FDWoptions: (schema_name 'import_source', table_name 'x 4')
70027002

70037003
Foreign table "import_dest1.x 5"
7004-
Column | Type | Collation | Nullable | Default | FDWOptions
7004+
Column | Type | Collation | Nullable | Default | FDWoptions
70057005
--------+------+-----------+----------+---------+-------------
70067006
Server: loopback
7007-
FDWOptions: (schema_name 'import_source', table_name 'x 5')
7007+
FDWoptions: (schema_name 'import_source', table_name 'x 5')
70087008

70097009
-- Options
70107010
CREATE SCHEMA import_dest2;
70117011
IMPORT FOREIGN SCHEMA import_source FROM SERVER loopback INTO import_dest2
70127012
OPTIONS (import_default 'true');
70137013
\det+ import_dest2.*
70147014
List of foreign tables
7015-
Schema | Table | Server | FDWOptions | Description
7015+
Schema | Table | Server | FDWoptions | Description
70167016
--------------+-------+----------+-------------------------------------------------+-------------
70177017
import_dest2 | t1 | loopback | (schema_name 'import_source', table_name 't1') |
70187018
import_dest2 | t2 | loopback | (schema_name 'import_source', table_name 't2') |
@@ -7024,58 +7024,58 @@ IMPORT FOREIGN SCHEMA import_source FROM SERVER loopback INTO import_dest2
70247024

70257025
\d import_dest2.*
70267026
Foreign table "import_dest2.t1"
7027-
Column | Type | Collation | Nullable | Default | FDWOptions
7027+
Column | Type | Collation | Nullable | Default | FDWoptions
70287028
--------+-------------------+-----------+----------+---------+--------------------
70297029
c1 | integer | | | | (column_name 'c1')
70307030
c2 | character varying | | not null | | (column_name 'c2')
70317031
Server: loopback
7032-
FDWOptions: (schema_name 'import_source', table_name 't1')
7032+
FDWoptions: (schema_name 'import_source', table_name 't1')
70337033

70347034
Foreign table "import_dest2.t2"
7035-
Column | Type | Collation | Nullable | Default | FDWOptions
7035+
Column | Type | Collation | Nullable | Default | FDWoptions
70367036
--------+-------------------+-----------+----------+---------+--------------------
70377037
c1 | integer | | | 42 | (column_name 'c1')
70387038
c2 | character varying | | | | (column_name 'c2')
70397039
c3 | text | POSIX | | | (column_name 'c3')
70407040
Server: loopback
7041-
FDWOptions: (schema_name 'import_source', table_name 't2')
7041+
FDWoptions: (schema_name 'import_source', table_name 't2')
70427042

70437043
Foreign table "import_dest2.t3"
7044-
Column | Type | Collation | Nullable | Default | FDWOptions
7044+
Column | Type | Collation | Nullable | Default | FDWoptions
70457045
--------+--------------------------+-----------+----------+---------+--------------------
70467046
c1 | timestamp with time zone | | | now() | (column_name 'c1')
70477047
c2 | typ1 | | | | (column_name 'c2')
70487048
Server: loopback
7049-
FDWOptions: (schema_name 'import_source', table_name 't3')
7049+
FDWoptions: (schema_name 'import_source', table_name 't3')
70507050

70517051
Foreign table "import_dest2.t4"
7052-
Column | Type | Collation | Nullable | Default | FDWOptions
7052+
Column | Type | Collation | Nullable | Default | FDWoptions
70537053
--------+---------+-----------+----------+---------+--------------------
70547054
c1 | integer | | | | (column_name 'c1')
70557055
Server: loopback
7056-
FDWOptions: (schema_name 'import_source', table_name 't4')
7056+
FDWoptions: (schema_name 'import_source', table_name 't4')
70577057

70587058
Foreign table "import_dest2.x 4"
7059-
Column | Type | Collation | Nullable | Default | FDWOptions
7059+
Column | Type | Collation | Nullable | Default | FDWoptions
70607060
--------+-----------------------+-----------+----------+---------+---------------------
70617061
c1 | double precision | | | | (column_name 'c1')
70627062
C 2 | text | | | | (column_name 'C 2')
70637063
c3 | character varying(42) | | | | (column_name 'c3')
70647064
Server: loopback
7065-
FDWOptions: (schema_name 'import_source', table_name 'x 4')
7065+
FDWoptions: (schema_name 'import_source', table_name 'x 4')
70667066

70677067
Foreign table "import_dest2.x 5"
7068-
Column | Type | Collation | Nullable | Default | FDWOptions
7068+
Column | Type | Collation | Nullable | Default | FDWoptions
70697069
--------+------+-----------+----------+---------+-------------
70707070
Server: loopback
7071-
FDWOptions: (schema_name 'import_source', table_name 'x 5')
7071+
FDWoptions: (schema_name 'import_source', table_name 'x 5')
70727072

70737073
CREATE SCHEMA import_dest3;
70747074
IMPORT FOREIGN SCHEMA import_source FROM SERVER loopback INTO import_dest3
70757075
OPTIONS (import_collate 'false', import_not_null 'false');
70767076
\det+ import_dest3.*
70777077
List of foreign tables
7078-
Schema | Table | Server | FDWOptions | Description
7078+
Schema | Table | Server | FDWoptions | Description
70797079
--------------+-------+----------+-------------------------------------------------+-------------
70807080
import_dest3 | t1 | loopback | (schema_name 'import_source', table_name 't1') |
70817081
import_dest3 | t2 | loopback | (schema_name 'import_source', table_name 't2') |
@@ -7087,59 +7087,59 @@ IMPORT FOREIGN SCHEMA import_source FROM SERVER loopback INTO import_dest3
70877087

70887088
\d import_dest3.*
70897089
Foreign table "import_dest3.t1"
7090-
Column | Type | Collation | Nullable | Default | FDWOptions
7090+
Column | Type | Collation | Nullable | Default | FDWoptions
70917091
--------+-------------------+-----------+----------+---------+--------------------
70927092
c1 | integer | | | | (column_name 'c1')
70937093
c2 | character varying | | | | (column_name 'c2')
70947094
Server: loopback
7095-
FDWOptions: (schema_name 'import_source', table_name 't1')
7095+
FDWoptions: (schema_name 'import_source', table_name 't1')
70967096

70977097
Foreign table "import_dest3.t2"
7098-
Column | Type | Collation | Nullable | Default | FDWOptions
7098+
Column | Type | Collation | Nullable | Default | FDWoptions
70997099
--------+-------------------+-----------+----------+---------+--------------------
71007100
c1 | integer | | | | (column_name 'c1')
71017101
c2 | character varying | | | | (column_name 'c2')
71027102
c3 | text | | | | (column_name 'c3')
71037103
Server: loopback
7104-
FDWOptions: (schema_name 'import_source', table_name 't2')
7104+
FDWoptions: (schema_name 'import_source', table_name 't2')
71057105

71067106
Foreign table "import_dest3.t3"
7107-
Column | Type | Collation | Nullable | Default | FDWOptions
7107+
Column | Type | Collation | Nullable | Default | FDWoptions
71087108
--------+--------------------------+-----------+----------+---------+--------------------
71097109
c1 | timestamp with time zone | | | | (column_name 'c1')
71107110
c2 | typ1 | | | | (column_name 'c2')
71117111
Server: loopback
7112-
FDWOptions: (schema_name 'import_source', table_name 't3')
7112+
FDWoptions: (schema_name 'import_source', table_name 't3')
71137113

71147114
Foreign table "import_dest3.t4"
7115-
Column | Type | Collation | Nullable | Default | FDWOptions
7115+
Column | Type | Collation | Nullable | Default | FDWoptions
71167116
--------+---------+-----------+----------+---------+--------------------
71177117
c1 | integer | | | | (column_name 'c1')
71187118
Server: loopback
7119-
FDWOptions: (schema_name 'import_source', table_name 't4')
7119+
FDWoptions: (schema_name 'import_source', table_name 't4')
71207120

71217121
Foreign table "import_dest3.x 4"
7122-
Column | Type | Collation | Nullable | Default | FDWOptions
7122+
Column | Type | Collation | Nullable | Default | FDWoptions
71237123
--------+-----------------------+-----------+----------+---------+---------------------
71247124
c1 | double precision | | | | (column_name 'c1')
71257125
C 2 | text | | | | (column_name 'C 2')
71267126
c3 | character varying(42) | | | | (column_name 'c3')
71277127
Server: loopback
7128-
FDWOptions: (schema_name 'import_source', table_name 'x 4')
7128+
FDWoptions: (schema_name 'import_source', table_name 'x 4')
71297129

71307130
Foreign table "import_dest3.x 5"
7131-
Column | Type | Collation | Nullable | Default | FDWOptions
7131+
Column | Type | Collation | Nullable | Default | FDWoptions
71327132
--------+------+-----------+----------+---------+-------------
71337133
Server: loopback
7134-
FDWOptions: (schema_name 'import_source', table_name 'x 5')
7134+
FDWoptions: (schema_name 'import_source', table_name 'x 5')
71357135

71367136
-- Check LIMIT TO and EXCEPT
71377137
CREATE SCHEMA import_dest4;
71387138
IMPORT FOREIGN SCHEMA import_source LIMIT TO (t1, nonesuch)
71397139
FROM SERVER loopback INTO import_dest4;
71407140
\det+ import_dest4.*
71417141
List of foreign tables
7142-
Schema | Table | Server | FDWOptions | Description
7142+
Schema | Table | Server | FDWoptions | Description
71437143
--------------+-------+----------+------------------------------------------------+-------------
71447144
import_dest4 | t1 | loopback | (schema_name 'import_source', table_name 't1') |
71457145
(1 row)
@@ -7148,7 +7148,7 @@ IMPORT FOREIGN SCHEMA import_source EXCEPT (t1, "x 4", nonesuch)
71487148
FROM SERVER loopback INTO import_dest4;
71497149
\det+ import_dest4.*
71507150
List of foreign tables
7151-
Schema | Table | Server | FDWOptions | Description
7151+
Schema | Table | Server | FDWoptions | Description
71527152
--------------+-------+----------+-------------------------------------------------+-------------
71537153
import_dest4 | t1 | loopback | (schema_name 'import_source', table_name 't1') |
71547154
import_dest4 | t2 | loopback | (schema_name 'import_source', table_name 't2') |

‎src/bin/psql/describe.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1726,7 +1726,7 @@ describeOneTableDetails(const char *schemaname,
17261726
headers[cols++]=gettext_noop("Definition");
17271727

17281728
if (tableinfo.relkind==RELKIND_FOREIGN_TABLE&&pset.sversion >=90200)
1729-
headers[cols++]=gettext_noop("FDWOptions");
1729+
headers[cols++]=gettext_noop("FDWoptions");
17301730

17311731
if (verbose)
17321732
{
@@ -2786,7 +2786,7 @@ describeOneTableDetails(const char *schemaname,
27862786
ftoptions=PQgetvalue(result,0,1);
27872787
if (ftoptions&&ftoptions[0]!='\0')
27882788
{
2789-
printfPQExpBuffer(&buf,_("FDWOptions: (%s)"),ftoptions);
2789+
printfPQExpBuffer(&buf,_("FDWoptions: (%s)"),ftoptions);
27902790
printTableAddFooter(&cont,buf.data);
27912791
}
27922792
PQclear(result);
@@ -3473,12 +3473,12 @@ listLanguages(const char *pattern, bool verbose, bool showSystem)
34733473
",\n NOT l.lanispl AS \"%s\",\n"
34743474
" l.lanplcallfoid::regprocedure AS \"%s\",\n"
34753475
" l.lanvalidator::regprocedure AS \"%s\",\n ",
3476-
gettext_noop("InternalLanguage"),
3477-
gettext_noop("CallHandler"),
3476+
gettext_noop("Internallanguage"),
3477+
gettext_noop("Callhandler"),
34783478
gettext_noop("Validator"));
34793479
if (pset.sversion >=90000)
34803480
appendPQExpBuffer(&buf,"l.laninline::regprocedure AS \"%s\",\n ",
3481-
gettext_noop("InlineHandler"));
3481+
gettext_noop("Inlinehandler"));
34823482
printACLColumn(&buf,"l.lanacl");
34833483
}
34843484

@@ -4612,7 +4612,7 @@ listForeignDataWrappers(const char *pattern, bool verbose)
46124612
" quote_literal(option_value) FROM "
46134613
" pg_options_to_table(fdwoptions)), ', ') || ')' "
46144614
" END AS \"%s\"",
4615-
gettext_noop("FDWOptions"));
4615+
gettext_noop("FDWoptions"));
46164616

46174617
if (pset.sversion >=90100)
46184618
appendPQExpBuffer(&buf,
@@ -4696,7 +4696,7 @@ listForeignServers(const char *pattern, bool verbose)
46964696
" d.description AS \"%s\"",
46974697
gettext_noop("Type"),
46984698
gettext_noop("Version"),
4699-
gettext_noop("FDWOptions"),
4699+
gettext_noop("FDWoptions"),
47004700
gettext_noop("Description"));
47014701
}
47024702

@@ -4767,7 +4767,7 @@ listUserMappings(const char *pattern, bool verbose)
47674767
" quote_literal(option_value) FROM "
47684768
" pg_options_to_table(umoptions)), ', ') || ')' "
47694769
" END AS \"%s\"",
4770-
gettext_noop("FDWOptions"));
4770+
gettext_noop("FDWoptions"));
47714771

47724772
appendPQExpBufferStr(&buf,"\nFROM pg_catalog.pg_user_mappings um\n");
47734773

@@ -4831,7 +4831,7 @@ listForeignTables(const char *pattern, bool verbose)
48314831
" pg_options_to_table(ftoptions)), ', ') || ')' "
48324832
" END AS \"%s\",\n"
48334833
" d.description AS \"%s\"",
4834-
gettext_noop("FDWOptions"),
4834+
gettext_noop("FDWoptions"),
48354835
gettext_noop("Description"));
48364836

48374837
appendPQExpBufferStr(&buf,
@@ -5017,7 +5017,7 @@ listOneExtensionContents(const char *extname, const char *oid)
50175017
"FROM pg_catalog.pg_depend\n"
50185018
"WHERE refclassid = 'pg_catalog.pg_extension'::pg_catalog.regclass AND refobjid = '%s' AND deptype = 'e'\n"
50195019
"ORDER BY 1;",
5020-
gettext_noop("ObjectDescription"),
5020+
gettext_noop("Objectdescription"),
50215021
oid);
50225022

50235023
res=PSQLexec(buf.data);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp