как переезжали?
конфиги да, полностью переносились на новый сервер переезжали через реплику, поднимали реплику, останавливали приложение, переключили приложение на новый сервер и новый сервер переключили в мастер, запустили приложение это на старом сервере postgres=# show enable_hashjoin; enable_hashjoin ----------------- off (1 row) postgres=# EXPLAIN (ANALYZE,BUFFERS) SELECT psd.datname, numbackends, xact_commit, xact_rollback, blks_read, blks_hit, tup_returned, tup_fetched, tup_inserted, tup_updated, tup_deleted, 2 ^ 31 - age(datfrozenxid) as wraparound, deadlocks, temp_bytes, temp_files, pg_database_size(psd.datname) as pg_database_size FROM pg_stat_database psd JOIN pg_database pd ON psd.datname = pd.datname WHERE psd.datname not ilike 'template%%%%' AND psd.datname not ilike 'rdsadmin' AND psd.datname not ilike 'azure_maintenance' AND psd.datname not ilike 'postgres'; QUERY PLAN ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Merge Join (cost=0.54..0.94 rows=6 width=180) (actual time=14.533..16.127 rows=3 loops=1) Merge Cond: (d.datname = pd.datname) Buffers: shared hit=8 -> Sort (cost=0.30..0.31 rows=6 width=68) (actual time=0.080..0.082 rows=3 loops=1) Sort Key: d.datname Sort Method: quicksort Memory: 25kB Buffers: shared hit=1 -> Seq Scan on pg_database d (cost=0.00..0.22 rows=6 width=68) (actual time=0.034..0.054 rows=3 loops=1) Filter: ((datname !~~* 'template%%%%'::text) AND (datname !~~* 'rdsadmin'::text) AND (datname !~~* 'azure_maintenance'::text) AND (datname !~~* 'postgres'::text)) Rows Removed by Filter: 3 Buffers: shared hit=1 -> Sort (cost=0.24..0.25 rows=6 width=68) (actual time=0.025..0.027 rows=5 loops=1) Sort Key: pd.datname Sort Method: quicksort Memory: 25kB Buffers: shared hit=1 -> Seq Scan on pg_database pd (cost=0.00..0.16 rows=6 width=68) (actual time=0.003..0.004 rows=6 loops=1) Buffers: shared hit=1 Planning time: 0.475 ms Execution time: 16.184 ms (19 rows)
Обсуждают сегодня