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
13dbd027
Commit
13dbd027
authored
Dec 03, 2000
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Final(?) GUC clean-up. Update psql tab completion.
parent
65b362fa
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
23 deletions
+43
-23
doc/src/sgml/runtime.sgml
doc/src/sgml/runtime.sgml
+14
-14
src/backend/utils/misc/guc.c
src/backend/utils/misc/guc.c
+4
-4
src/bin/psql/tab-complete.c
src/bin/psql/tab-complete.c
+25
-5
No files found.
doc/src/sgml/runtime.sgml
View file @
13dbd027
<!--
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.4
0 2000/11/30 23:20:50 tgl
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.4
1 2000/12/03 14:36:45 petere
Exp $
-->
-->
<Chapter Id="runtime">
<Chapter Id="runtime">
...
@@ -638,7 +638,7 @@ env PGOPTIONS='-c geqo=off' psql
...
@@ -638,7 +638,7 @@ env PGOPTIONS='-c geqo=off' psql
</varlistentry>
</varlistentry>
<varlistentry>
<varlistentry>
<term>GEQO_
RELS
(<type>integer</type>)</term>
<term>GEQO_
THRESHOLD
(<type>integer</type>)</term>
<listitem>
<listitem>
<para>
<para>
Only use genetic query optimization for queries with at least
Only use genetic query optimization for queries with at least
...
@@ -751,7 +751,7 @@ env PGOPTIONS='-c geqo=off' psql
...
@@ -751,7 +751,7 @@ env PGOPTIONS='-c geqo=off' psql
</varlistentry>
</varlistentry>
<varlistentry>
<varlistentry>
<term>HOSTLOOKUP (<type>boolean</type>)</term>
<term>HOST
NAME_
LOOKUP (<type>boolean</type>)</term>
<listitem>
<listitem>
<para>
<para>
By default, connection logs only show the IP address of the
By default, connection logs only show the IP address of the
...
@@ -811,14 +811,14 @@ env PGOPTIONS='-c geqo=off' psql
...
@@ -811,14 +811,14 @@ env PGOPTIONS='-c geqo=off' psql
</varlistentry>
</varlistentry>
<varlistentry>
<varlistentry>
<term>SHOW
PORTNUMBER
(<type>boolean</type>)</term>
<term>SHOW
_SOURCE_PORT
(<type>boolean</type>)</term>
<listitem>
<listitem>
<para>
<para>
Shows the
port number of the connecting host in the connection
Shows the
outgoing port number of the connecting host in the
log messages. You could trace back the port number to find out
connection log messages. You could trace back the port number
what user initiated the connection. Other than that it's
to find out what user initiated the connection. Other than
pretty useless and therefore off by default. This option can
that it's pretty useless and therefore off by default. This
only be set at server start.
o
ption can o
nly be set at server start.
</para>
</para>
</listitem>
</listitem>
</varlistentry>
</varlistentry>
...
@@ -1015,12 +1015,12 @@ env PGOPTIONS='-c geqo=off' psql
...
@@ -1015,12 +1015,12 @@ env PGOPTIONS='-c geqo=off' psql
<term>SILENT_MODE (<type>bool</type>)</term>
<term>SILENT_MODE (<type>bool</type>)</term>
<listitem>
<listitem>
<para>
<para>
Runs postmaster silently. If this option is set, postmas
er
Runs postmaster silently. If this option is set, postmast
er
will automatically run in background and any controlling ttys
will automatically run in background and any controlling ttys
are disassociated, thus no message
is put
to stdout or
are disassociated, thus no message
s are written
to stdout or
stderr(same effect as postmaster's -S option). Unless some
stderr
(same effect as postmaster's -S option). Unless some
logging system
s such as syslog is enabled, using this option
logging system
such as syslog is enabled, using this option is
is discouraged since it makes difficult to find
error
discouraged since it makes it impossible to see
error
messages.
messages.
</para>
</para>
</listitem>
</listitem>
...
...
src/backend/utils/misc/guc.c
View file @
13dbd027
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* Support for grand unified configuration scheme, including SET
* Support for grand unified configuration scheme, including SET
* command, configuration file, and command line options.
* command, configuration file, and command line options.
*
*
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.2
5 2000/11/30 01:47:32 vadim
Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.2
6 2000/12/03 14:36:46 petere
Exp $
*
*
* Copyright 2000 by PostgreSQL Global Development Group
* Copyright 2000 by PostgreSQL Global Development Group
* Written by Peter Eisentraut <peter_e@gmx.net>.
* Written by Peter Eisentraut <peter_e@gmx.net>.
...
@@ -207,8 +207,8 @@ ConfigureNamesBool[] =
...
@@ -207,8 +207,8 @@ ConfigureNamesBool[] =
{
"debug_deadlocks"
,
PGC_SUSET
,
&
Debug_deadlocks
,
false
},
{
"debug_deadlocks"
,
PGC_SUSET
,
&
Debug_deadlocks
,
false
},
#endif
#endif
{
"host
lookup"
,
PGC_SIGHUP
,
&
HostnameLookup
,
false
},
{
"host
name_lookup"
,
PGC_SIGHUP
,
&
HostnameLookup
,
false
},
{
"show
portnumber"
,
PGC_SIGHUP
,
&
ShowPortNumber
,
false
},
{
"show
_source_port"
,
PGC_SIGHUP
,
&
ShowPortNumber
,
false
},
{
"sql_inheritance"
,
PGC_USERSET
,
&
SQL_inheritance
,
true
},
{
"sql_inheritance"
,
PGC_USERSET
,
&
SQL_inheritance
,
true
},
...
@@ -219,7 +219,7 @@ ConfigureNamesBool[] =
...
@@ -219,7 +219,7 @@ ConfigureNamesBool[] =
static
struct
config_int
static
struct
config_int
ConfigureNamesInt
[]
=
ConfigureNamesInt
[]
=
{
{
{
"geqo_
rels"
,
PGC_USERSET
,
&
geqo_rels
,
{
"geqo_
threshold"
,
PGC_USERSET
,
&
geqo_rels
,
DEFAULT_GEQO_RELS
,
2
,
INT_MAX
},
DEFAULT_GEQO_RELS
,
2
,
INT_MAX
},
{
"geqo_pool_size"
,
PGC_USERSET
,
&
Geqo_pool_size
,
{
"geqo_pool_size"
,
PGC_USERSET
,
&
Geqo_pool_size
,
DEFAULT_GEQO_POOL_SIZE
,
0
,
MAX_GEQO_POOL_SIZE
},
DEFAULT_GEQO_POOL_SIZE
,
0
,
MAX_GEQO_POOL_SIZE
},
...
...
src/bin/psql/tab-complete.c
View file @
13dbd027
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
*
*
* Copyright 2000 by PostgreSQL Global Development Group
* Copyright 2000 by PostgreSQL Global Development Group
*
*
* $Header: /cvsroot/pgsql/src/bin/psql/tab-complete.c,v 1.2
2 2000/10/25 20:36:52 tgl
Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/tab-complete.c,v 1.2
3 2000/12/03 14:36:47 petere
Exp $
*/
*/
/*----------------------------------------------------------------------
/*----------------------------------------------------------------------
...
@@ -201,6 +201,7 @@ psql_completion(char *text, int start, int end)
...
@@ -201,6 +201,7 @@ psql_completion(char *text, int start, int end)
/* these SET arguments are known in gram.y */
/* these SET arguments are known in gram.y */
"CONSTRAINTS"
,
"CONSTRAINTS"
,
"NAMES"
,
"NAMES"
,
"SESSION CHARACTERISTICS AS TRANSACTION ISOLATION LEVEL"
,
"TRANSACTION ISOLATION LEVEL"
,
"TRANSACTION ISOLATION LEVEL"
,
/* these are treated in backend/commands/variable.c */
/* these are treated in backend/commands/variable.c */
"DateStyle"
,
"DateStyle"
,
...
@@ -208,9 +209,7 @@ psql_completion(char *text, int start, int end)
...
@@ -208,9 +209,7 @@ psql_completion(char *text, int start, int end)
"client_encoding"
,
"client_encoding"
,
"server_encoding"
,
"server_encoding"
,
"random_seed"
,
"random_seed"
,
/* the rest should match USERSET and SUSET entries in
/* the rest should match USERSET entries in backend/utils/misc/guc.c */
* backend/utils/misc/guc.c, but feel free to leave out the
* esoteric or debug settings */
"enable_seqscan"
,
"enable_seqscan"
,
"enable_indexscan"
,
"enable_indexscan"
,
"enable_tidscan"
,
"enable_tidscan"
,
...
@@ -220,15 +219,36 @@ psql_completion(char *text, int start, int end)
...
@@ -220,15 +219,36 @@ psql_completion(char *text, int start, int end)
"enable_hashjoin"
,
"enable_hashjoin"
,
"geqo"
,
"geqo"
,
"ksqo"
,
"ksqo"
,
"fsync"
,
"debug_assertions"
,
"debug_print_query"
,
"debug_print_parse"
,
"debug_print_rewritten"
,
"debug_print_plan"
,
"debug_pretty_print"
,
"show_parser_stats"
,
"show_planner_stats"
,
"show_executor_stats"
,
"show_query_stats"
,
"trace_notify"
,
"sql_inheritance"
,
"sql_inheritance"
,
"geqo_threshold"
,
"geqo_pool_size"
,
"geqo_effort"
,
"geqo_generations"
,
"geqo_random_seed"
,
"sort_mem"
,
"sort_mem"
,
"debug_level"
,
"debug_level"
,
"max_expr_depth"
,
"max_expr_depth"
,
"commit_delay"
,
"effective_cache_size"
,
"effective_cache_size"
,
"random_page_cost"
,
"random_page_cost"
,
"cpu_tuple_cost"
,
"cpu_tuple_cost"
,
"cpu_index_tuple_cost"
,
"cpu_index_tuple_cost"
,
"cpu_operator_cost"
,
"cpu_operator_cost"
,
"geqo_selection_bias"
,
NULL
NULL
};
};
...
@@ -592,7 +612,7 @@ psql_completion(char *text, int start, int end)
...
@@ -592,7 +612,7 @@ psql_completion(char *text, int start, int end)
strcasecmp
(
prev2_wd
,
"TRANSACTION"
)
==
0
&&
strcasecmp
(
prev2_wd
,
"TRANSACTION"
)
==
0
&&
strcasecmp
(
prev_wd
,
"ISOLATION"
)
==
0
)
strcasecmp
(
prev_wd
,
"ISOLATION"
)
==
0
)
COMPLETE_WITH_CONST
(
"LEVEL"
);
COMPLETE_WITH_CONST
(
"LEVEL"
);
else
if
(
strcasecmp
(
prev4_wd
,
"SET"
)
==
0
&&
else
if
(
(
strcasecmp
(
prev4_wd
,
"SET"
)
==
0
||
strcasecmp
(
prev4_wd
,
"AS"
)
==
0
)
&&
strcasecmp
(
prev3_wd
,
"TRANSACTION"
)
==
0
&&
strcasecmp
(
prev3_wd
,
"TRANSACTION"
)
==
0
&&
strcasecmp
(
prev2_wd
,
"ISOLATION"
)
==
0
&&
strcasecmp
(
prev2_wd
,
"ISOLATION"
)
==
0
&&
strcasecmp
(
prev_wd
,
"LEVEL"
)
==
0
)
strcasecmp
(
prev_wd
,
"LEVEL"
)
==
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