Christopher Kings-Lynne <[EMAIL PROTECTED]> writes: >> Add some code to guc.c to allow these variables to be referenced by their >> old names in SHOW and SET commands, for backwards compatibility.
> Does this mean that if you go ALTER USER/SET sort_mem TO xxx, it will > set the variable work_mem=xxx in their pg_shadow row? My first answer was "no, the pg_shadow row will still mention sort_mem, but that will be accepted as meaning work_mem later on when you log in as that user." However, looking more closely, AlterUserSet converts option names to canonical spelling before storing them, which means it Just Works: regression=# create user foo; CREATE USER regression=# alter user foo set sort_mem = 999; ALTER USER regression=# select * from pg_shadow where usename = 'foo'; usename | usesysid | usecreatedb | usesuper | usecatupd | passwd | valuntil | useconfig ---------+----------+-------------+----------+-----------+--------+----------+---------------- foo | 100 | f | f | f | | | {work_mem=999} (1 row) Dang, sometimes nice things actually fall out of the code ... regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 7: don't forget to increase your free space map settings