RE: Streaming replica hangs periodically for ~ 1 second - how to diagnose/debug

2025-08-20 Thread Scot Kreienkamp
䄀瀀漀氀漀最椀攀猀 昀漀爀 琀栀攀 最椀戀戀攀爀椀猀栀 攀瘀攀爀礀漀渀攀⸀  伀甀琀氀漀漀欀 搀攀昀愀甀氀琀猀 琀漀 䠀吀䴀䰀Ⰰ 䤀 栀愀瘀攀渀✀琀  瀀漀猀琀攀搀 椀渀 瀀爀漀戀愀戀氀礀 洀漀爀攀 琀栀愀渀 愀 礀攀愀爀 愀渀搀 昀漀爀最漀琀 琀漀 猀攀琀 椀琀 琀漀 瀀氀愀椀渀 琀攀砀琀⸀  吀栀攀  猀椀最渀愀琀甀爀攀 䤀 挀愀渀✀琀 搀漀 愀渀礀琀栀椀渀最 愀戀漀甀琀Ⰰ 琀栀愀琀✀猀 愀甀琀漀洀愀琀椀挀愀氀氀礀 愀搀搀攀搀 愀昀琀攀爀 䤀 栀椀琀  猀攀渀搀⸀ഀ਀ഀ਀ഀ਀ഀ਀ഀ਀匀挀漀琀 䬀爀攀椀攀渀欀愀洀瀀 簀 䄀瀀瀀氀椀挀愀琀椀漀渀猀 䤀渀昀爀愀猀琀爀甀挀琀甀爀攀 䄀爀挀栀椀琀攀

RE: vacuum analyze query performance - help me understand

2025-08-19 Thread Scot Kreienkamp
䠀椀 吀漀洀Ⰰഀ਀ഀ਀䤀昀 琀栀攀 瀀氀愀渀 搀椀搀渀✀琀 挀栀愀渀最攀 琀栀攀渀 琀栀攀 猀琀愀琀猀 甀瀀搀愀琀攀猀 眀攀爀攀渀✀琀 瘀攀爀礀  爀攀氀攀瘀愀渀琀⸀ഀ਀䤀 愀洀 最甀攀猀猀椀渀最 琀栀愀琀 琀栀攀 愀挀琀甀愀氀 瀀爀漀戀氀攀洀 眀愀猀 琀栀愀琀 琀栀漀猀攀 琀愀戀氀攀猀  眀攀爀攀ഀ਀昀甀氀氀 漀昀 搀椀爀琀礀 爀漀眀猀Ⰰ 愀渀搀 琀栀攀 嘀䄀䌀唀唀䴀 ⠀渀漀琀 琀栀攀 䄀一䄀䰀夀娀䔀 瀀愀爀琀⤀ 最漀琀 爀椀搀ഀ਀漀昀  搀攀愀搀 爀漀眀猀Ⰰ 猀攀琀 栀椀渀琀 戀椀琀猀 漀渀 爀攀挀攀渀琀氀礀ⴀ甀瀀搀愀琀攀搀 爀漀眀猀Ⰰ 愀渀搀 最攀渀攀爀愀氀氀礀ഀ਀搀椀搀 愀 氀漀琀 

RE: Disk Groups/Storage Management for a Large Database in PostgreSQL

2024-01-23 Thread Scot Kreienkamp
use all of disk 2, then use all of disk 3. The reason for that is with the default you can add new disks one at a time. With striping you must add new disks equal to the number of stripes. Either way I would still advise use of LVM. Scot Kreienkamp | Applications Infrastructure Architect | La

RE: Disk Groups/Storage Management for a Large Database in PostgreSQL

2024-01-23 Thread Scot Kreienkamp
a setup where you are multiplexing reads/writes across all 3 SCSI controllers and disks instead of bottlenecking them all through 1 SCSI controller and disk at a time. Scot Kreienkamp | Applications Infrastructure Architect | La-Z-Boy Corporate One La-Z-Boy Drive | Monroe, Michigan 48162 | • (734) 3

RE: psql crash on 9.6.16

2020-03-16 Thread Scot Kreienkamp
Scot Kreienkamp | Senior Systems Engineer | La-Z-Boy Corporate One La-Z-Boy Drive | Monroe, Michigan 48162 | Office: 734-384-6403 | Fax: | Mobile: 7349151444 | E-mail: scot.kreienk...@la-z-boy.com ? ? -Original Message- From: Tom Lane Sent: Monday, March 16, 2020 11:40 AM To: Scot

RE: psql crash on 9.6.16

2020-03-16 Thread Scot Kreienkamp
icial repo packages. 3) What was the connection string that you supplied to psql? No connection string, so connected via socket. Psql -d rms. Scot Kreienkamp | Senior Systems Engineer | La-Z-Boy Corporate One La-Z-Boy Drive | Monroe, Michigan 48162 | Office: 734-384-6403 | Fax: | Mobile: 7349

RE: max_connections parameter: too_many_connections error

2019-09-17 Thread Scot Kreienkamp
with pacemaker to relieve the PG cluster of the additional load. Scot Kreienkamp | Senior Systems Engineer | La-Z-Boy Corporate One La-Z-Boy Drive | Monroe, Michigan 48162 | • 734-384-6403 | | • 7349151444 | • scot.kreienk...@la-z-boy.com www.la-z-boy.com<http://www.la-z-boy.com> | facebo

RE: Streaming Replication

2019-04-22 Thread Scot Kreienkamp
replication,postgres172.17.0.0/16 md5 hostnossl replication replication,postgres10.29.0.0/16 md5 Please suggest what I have missed. Regards, Daulat Scot Kreienkamp |Senior Systems Engineer | La-Z-Boy Corporate One La-Z-Boy Drive| Monroe, Michigan 48162

RE: Getting error while running the pg_basebackup through PGBOUNCER

2019-04-08 Thread Scot Kreienkamp
Basically anything that is not written as a sql query should be connected directly to PG. PGBouncer is really only meant for SQL query type connections. From: Raghavendra Rao J S V [mailto:raghavendra...@gmail.com] Sent: Monday, April 8, 2019 10:19 AM To: Scot Kreienkamp Cc: pgsql-general

RE: Getting error while running the pg_basebackup through PGBOUNCER

2019-04-08 Thread Scot Kreienkamp
Replication and several other admin type operations must connect directly to PG. They are not supported through PGBouncer. From: Raghavendra Rao J S V [mailto:raghavendra...@gmail.com] Sent: Monday, April 8, 2019 9:21 AM To: pgsql-general@lists.postgresql.org Subject: Getting error while running

RE: automated refresh of dev from prod

2019-02-27 Thread Scot Kreienkamp
ff and not fit for every use, that's why we also use the traditional backup/restore in some cases. Scot Kreienkamp |Senior Systems Engineer | La-Z-Boy Corporate One La-Z-Boy Drive| Monroe, Michigan 48162 | Office: 734-384-6403 | | Mobile: 7349151444 | Email: scot.kreienk...@la-z-boy.

RE: pg_dump on a standby for a very active master

2019-02-12 Thread Scot Kreienkamp
How about pausing replication while you’re running the backup? I have a mirror dedicated to backups, it pauses replication by cron job every night before the backup, then resumes midday after I’ve had enough time to find out if the backup was successful. Scot Kreienkamp |Senior Systems

RE: postgres operational

2019-01-09 Thread Scot Kreienkamp
The best way I came up with for older versions is:If timeout -s 9 10 psql -d DBNAME -c "select 1" >/dev/null ; then And on newer versions, use the pg_isready command. Scot Kreienkamp |Senior Systems Engineer | La-Z-Boy Corporate One La-Z-Boy Drive| Monroe, Michigan 48

RE: Query help

2019-01-01 Thread Scot Kreienkamp
o a single record for the query results which would let the sum and group by work. Scot Kreienkamp |Senior Systems Engineer | La-Z-Boy Corporate One La-Z-Boy Drive| Monroe, Michigan 48162 | Office: 734-384-6403 | | Mobile: 7349151444 | Email: scot.kreienk...@la-z-boy.com From: Chuck Mar

RE: help with aggregation query across a second text array column

2018-11-12 Thread Scot Kreienkamp
union select name,unnest(auditenvironment) as environment from servers order by name) t group by environment order by environment; Cheers! Scot Kreienkamp |Senior Systems Engineer | La-Z-Boy Corporate One La-Z-Boy Drive| Monroe, Michigan 48162 | Office: 734-384-6403 | | Mobile: 7349151444 | Email: sco

help with aggregation query across a second text array column

2018-11-12 Thread Scot Kreienkamp
class taking into account the secondary class column and I'm completely baffled on how to do so with the array. I know the any trick and use it to match against the array when querying for specific primary and secondary classes but I can't figure out how to generate the listing the same as t

Cascading replication with slots

2018-10-30 Thread Scot Kreienkamp
. Any limitations on using it with cascading replication? For instance, can I setup a replication slot on a standby, then replicate using that slot from another standby? 3. Or can I only replicate from the master when using replication slots? Thanks! Scot Kreienkamp | Senior Systems Eng

RE: How to change standby node to sync from the new master without rebooting the PostgreSQL service?

2018-10-30 Thread Scot Kreienkamp
which node to activate the VIP on. In the script have it check which node is the master, and it will activate that VIP on the master. When you transition the master to another server the VIP will travel with the master. Scot Kreienkamp |Senior Systems Engineer | La-Z-Boy Corporate One La-Z-Boy

RE: How to change standby node to sync from the new master without rebooting the PostgreSQL service?

2018-10-30 Thread Scot Kreienkamp
Point it at a VIP that travels with the master. Scot Kreienkamp |Senior Systems Engineer | La-Z-Boy Corporate One La-Z-Boy Drive| Monroe, Michigan 48162 | Office: 734-384-6403 | | Mobile: 7349151444 | Email: scot.kreienk...@la-z-boy.com From: Madan Kumar [mailto:madankumar1...@gmail.com] Sent

RE: Replication question

2018-10-22 Thread Scot Kreienkamp
have to mount the archive via NFS like I had before, not a big deal. As an alternative to NFS I was thinking about making the archives available via HTTPD and using wget or curl in my script instead of a copy from NFS. That seems like it would work better from the remote sites. Scot Kreienkamp

RE: Replication question

2018-10-22 Thread Scot Kreienkamp
Dang, I thought that sounded too good to be true. Oh well. Thanks for setting me straight. Scot Kreienkamp |Senior Systems Engineer | La-Z-Boy Corporate One La-Z-Boy Drive| Monroe, Michigan 48162 | Office: 734-384-6403 | | Mobile: 7349151444 | Email: scot.kreienk...@la-z-boy.com From: Don

Replication question

2018-10-22 Thread Scot Kreienkamp
g or did I misunderstand something? Scot Kreienkamp | Senior Systems Engineer | La-Z-Boy Corporate One La-Z-Boy Drive | Monroe, Michigan 48162 | * 734-384-6403 | | * 7349151444 | * scot.kreienk...@la-z-boy.com<mailto:%7BE-mail%7D> www<http://www.la-z-boy.com/>.la-z-boy.com&l

RE: Pgbouncer discard all

2018-10-16 Thread Scot Kreienkamp
like expected behavior. Scot Kreienkamp |Senior Systems Engineer | La-Z-Boy Corporate One La-Z-Boy Drive| Monroe, Michigan 48162 | Office: 734-384-6403 | | Mobile: 7349151444 | Email: scot.kreienk...@la-z-boy.com From: Nicola Contu [mailto:nicola.co...@gmail.com] Sent: Tuesday, October 16, 2018

RE: Pgbouncer discard all

2018-10-16 Thread Scot Kreienkamp
you’re describing would seem to be expected behavior. Try this to see if the queries are actually waiting: select * from pg_stat_activity where wait_event_type is not null or wait_event is not null; Scot Kreienkamp |Senior Systems Engineer | La-Z-Boy Corporate One La-Z-Boy Drive| Monroe

RE: PG9.1 migration to PG9.6, dump/restore issues

2018-09-12 Thread Scot Kreienkamp
Thanks Ron, glad to hear it worked and someone was successful at it. I’m on the right path then. Scot Kreienkamp |Senior Systems Engineer | La-Z-Boy Corporate One La-Z-Boy Drive| Monroe, Michigan 48162 | Office: 734-384-6403 | | Mobile: 7349151444 | Email: scot.kreienk...@la-z-boy.com From

RE: PG9.1 migration to PG9.6, dump/restore issues

2018-09-12 Thread Scot Kreienkamp
tabases as empty again after that's applied. That brings over everything except data. Scot Kreienkamp |Senior Systems Engineer | La-Z-Boy Corporate One La-Z-Boy Drive| Monroe, Michigan 48162 | Office: 734-384-6403 | | Mobile: 7349151444 | Email: scot.kreienk...@la-z-boy.com This message

RE: PG9.1 migration to PG9.6, dump/restore issues

2018-09-12 Thread Scot Kreienkamp
Scot Kreienkamp |Senior Systems Engineer | La-Z-Boy Corporate One La-Z-Boy Drive| Monroe, Michigan 48162 | Office: 734-384-6403 | | Mobile: 7349151444 | Email: scot.kreienk...@la-z-boy.com > -Original Message- > From: Tom Lane [mailto:t...@sss.pgh.pa.us] > Sent: Wednesday,

PG9.1 migration to PG9.6, dump/restore issues

2018-09-12 Thread Scot Kreienkamp
doing a single threaded dump my only option to get a good backup? I have to be able to revert to the old server as this is production, so doing in place upgrades are not possible... the original server has to remain pristine. Thanks! Scot Kreienkamp | Senior Systems Engineer | La-Z-Boy Corpora