Domains vs data types

2025-08-19 Thread Ertan Küçükoglu
Hello, I am using PostgreSQL 17.6. I would like to learn if there is any benefit of using domains over data types for table column definitions in terms of performance gain/loss. For example I might have table defined as below create table test ( a integer, b integer, c integer, d varchar(

Re: vacuum analyze query performance - help me understand

2025-08-19 Thread David G. Johnston
On Tue, Aug 19, 2025 at 10:37 AM Scot Kreienkamp < [email protected]> wrote: > > We ran a (admittedly poorly written) select query against a subset of > tables which performed poorly. Then we ran a vacuum analyze against just > those tables involved in that query, then ran the same que

RE: vacuum analyze query performance - help me understand

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

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

2025-08-19 Thread Adrian Klaver
On 8/19/25 10:21, hubert depesz lubaczewski wrote: Hi, we have following situation: Pg 14.17 (yes, I know, but it can't be upgraded now/soon), on Ubuntu focal, in AWS cloud on EC2 server using arm64 architecture. All works, is fine. Every now and then (usually every 3-5 minutes, but not through

Re: vacuum analyze query performance - help me understand

2025-08-19 Thread Tom Lane
Scot Kreienkamp writes: > That command should vacuum analyze all tables in all databases, and it was > proven that it worked as the last vacuum and analyze dates on the tables in > all databases are showing dates from 2am today. I take it from this that you have autovacuum turned off and you th

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

2025-08-19 Thread hubert depesz lubaczewski
Hi, we have following situation: Pg 14.17 (yes, I know, but it can't be upgraded now/soon), on Ubuntu focal, in AWS cloud on EC2 server using arm64 architecture. All works, is fine. Every now and then (usually every 3-5 minutes, but not through the whole day), we see situations where every query

Re: Why analyze reports 30000 pages and rows scanned. Why not just rows?

2025-08-19 Thread Tom Lane
David Mullineux writes: > But my question is, why does 'analyze verbose' report that it has scanned > '3 of pages, containing live rows and 0 dead rows; 3 rows > in sample,' > As most tables would store more than 1 row per page, I expected that 3 > rows would require a l

Why analyze reports 30000 pages and rows scanned. Why not just rows?

2025-08-19 Thread David Mullineux
According to docs, analyze ,by default, will try to sample 3 rows from a table. (I've read analyze.c note about Haas and Stokes IBM Research ). But my question is, why does 'analyze verbose' report that it has scanned '3 of pages, containing live rows and 0 dead rows; 3 rows

RE: Offline PostgreSQL installation: what are the rpm packages to install ?

2025-08-19 Thread COURTAULT Francois
THALES GROUP LIMITED DISTRIBUTION to email recipients Hello Ruben, I think you have understood my needs. I wanted to know which rpm packages I have to install for PostgreSQL 17.6. The problem is that the command provided at https://stormatics.tech/blogs/offline-postgresql-installation-on-rhel-9