postgresql/src/bin
Bruce Momjian 38fb906f93 > Joe Conway <mail@joeconway.com> writes:
>>ISTM that "source" is worth knowing.
>
> Hm, possibly.  Any other opinions?

This version has the seven fields I proposed, including "source". Here's
an example that shows why I think it's valuable:

regression=# \x
Expanded display is on.
regression=# select * from pg_settings where name = 'enable_seqscan';
-[ RECORD 1 ]-----------
name    | enable_seqscan
setting | on
context | user
vartype | bool
source  | default
min_val |
max_val |

regression=# update pg_settings set setting = 'off' where name =
'enable_seqscan';
-[ RECORD 1 ]---
set_config | off

regression=# select * from pg_settings where name = 'enable_seqscan';
-[ RECORD 1 ]-----------
name    | enable_seqscan
setting | off
context | user
vartype | bool
source  | session
min_val |
max_val |

regression=# alter user postgres set enable_seqscan to 'off';
ALTER USER

(log out and then back in again)

regression=# \x
Expanded display is on.
regression=# select * from pg_settings where name = 'enable_seqscan';
-[ RECORD 1 ]-----------
name    | enable_seqscan
setting | off
context | user
vartype | bool
source  | user
min_val |
max_val |

In the first case, enable_seqscan is set to its default value. After
setting it to off, it is obvious that the value has been changed for the
session only. In the third case, you can see that the value has been set
specifically for the user.

Joe Conway
2003-07-27 04:35:54 +00:00
..
initdb > Joe Conway <mail@joeconway.com> writes: 2003-07-27 04:35:54 +00:00
initlocation Apply message style guide to frontend programs. 2003-07-23 08:47:41 +00:00
ipcclean Apply message style guide to frontend programs. 2003-07-23 08:47:41 +00:00
pg_config Apply message style guide to frontend programs. 2003-07-23 08:47:41 +00:00
pg_controldata Czech translation updates from Karel Zak 2003-07-23 09:36:43 +00:00
pg_ctl Apply message style guide to frontend programs. 2003-07-23 08:47:41 +00:00
pg_dump This is a totally trivial patch for something that was a very minor nit that 2003-07-27 03:47:22 +00:00
pg_encoding Returns exit status 1 if invalid encoding name or 2002-10-20 11:33:48 +00:00
pg_id pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
pg_resetxlog Czech translation updates from Karel Zak 2003-07-23 09:36:43 +00:00
pgtclsh Make use of TCL_INCLUDE_SPEC if available (it's new in Tcl 8.4, too bad 2002-12-30 17:19:54 +00:00
psql here are the patches for psql on Win32: 2003-07-27 03:32:26 +00:00
scripts Czech translation updates from Karel Zak 2003-07-23 09:36:43 +00:00
Makefile Remove all traces of multibyte and locale options. Clean up comments 2002-09-03 21:45:44 +00:00