Catégorie : Postgresql

Status instance postgres

POSTGRES_IS_RUNNING=$(export PGPASSWORD=${PG_PWD}; psql –host=${MACH_DEST} –port=${PORT} –user=${PG_USER} –dbname=postgres –quiet –tuples-only –no-psqlrc –command « SELECT 1; » 2>/dev/null)INSTANCE_STATUS=$(export PGPASSWORD=${PG_PWD}; psql –host=${MACH_DEST} –port=${PORT} –user=${PG_USER} –dbname=postgres –quiet –tuples-only –no-psqlrc –command= »SELECT CASE pg_is_in_recovery() WHEN true THEN ‘IN. read more…

[PostgreSQL] Voir les tablespaces

show default_tablespace ;alter system set default_tablespace=’tbs_msg_data’ ;select pg_reload_conf();show default_tablespace show temp_tablespaces ;alter system set temp_tablespaces=’temp’ ;select pg_reload_conf();show temp_tablespaces

Translate »