May 17, 2026, 11:40 PM
This commit is contained in:
@@ -0,0 +1,74 @@
|
||||
VIEW DEFAULT TEMP TABLESPACE:
|
||||
dbaclass=# SELECT name, setting FROM pg_settings where name='temp_tablespaces';
|
||||
name | setting
|
||||
------------------+---------
|
||||
temp_tablespaces |
|
||||
(1 row)
|
||||
|
||||
dbaclass=# show temp_tablespaces
|
||||
dbaclass-# ;
|
||||
temp_tablespaces
|
||||
------------------
|
||||
|
||||
(1 row)
|
||||
|
||||
CHANGE DEFAULT TEMP TABLESPACE
|
||||
|
||||
postgres=# alter system set temp_tablespaces=TS_TEMP;
|
||||
ALTER SYSTEM
|
||||
|
||||
postgres=# select pg_reload_conf();
|
||||
pg_reload_conf
|
||||
----------------
|
||||
t
|
||||
(1 row)
|
||||
|
||||
postgres=# show temp_tablespaces;
|
||||
temp_tablespaces
|
||||
------------------
|
||||
ts_temp
|
||||
(1 row)
|
||||
|
||||
postgres=# SELECT name, setting FROM pg_settings where name='temp_tablespaces';
|
||||
name | setting
|
||||
------------------+---------
|
||||
temp_tablespaces | ts_temp
|
||||
(1 row)
|
||||
|
||||
|
||||
VIEW DEFAULT TEMP TABLESPACE:
|
||||
dbaclass=# SELECT name, setting FROM pg_settings where name='temp_tablespaces';
|
||||
name | setting
|
||||
------------------+---------
|
||||
temp_tablespaces |
|
||||
(1 row)
|
||||
|
||||
dbaclass=# show temp_tablespaces
|
||||
dbaclass-# ;
|
||||
temp_tablespaces
|
||||
------------------
|
||||
|
||||
(1 row)
|
||||
|
||||
CHANGE DEFAULT TEMP TABLESPACE
|
||||
|
||||
postgres=# alter system set temp_tablespaces=TS_TEMP;
|
||||
ALTER SYSTEM
|
||||
|
||||
postgres=# select pg_reload_conf();
|
||||
pg_reload_conf
|
||||
----------------
|
||||
t
|
||||
(1 row)
|
||||
|
||||
postgres=# show temp_tablespaces;
|
||||
temp_tablespaces
|
||||
------------------
|
||||
ts_temp
|
||||
(1 row)
|
||||
|
||||
postgres=# SELECT name, setting FROM pg_settings where name='temp_tablespaces';
|
||||
name | setting
|
||||
------------------+---------
|
||||
temp_tablespaces | ts_temp
|
||||
(1 row)
|
||||
Reference in New Issue
Block a user