Skip to content

pg_wait_sampling_get_profile() invalid memory alloc request #96

Closed
@aleszeleny

Description

@aleszeleny

One of several Db server instances returns the following error:

powa=# SELECT * FROM pg_wait_sampling_get_profile();
ERROR:  invalid memory alloc request size 1194769944

Instance and extension information:

powa=# select version();
                                                 version                                                  
----------------------------------------------------------------------------------------------------------
 PostgreSQL 16.3 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 11.4.1 20231218 (Red Hat 11.4.1-3), 64-bit
(1 row)

powa=# \dx pg_wait_sampling
                          List of installed extensions
       Name       | Version | Schema |               Description                
------------------+---------+--------+------------------------------------------
 pg_wait_sampling | 1.1     | public | sampling based statistics of wait events
(1 row)

powa=# show shared_buffers ;
 shared_buffers 
----------------
 10GB
(1 row)

OS seem to have enough RAM available:

free -h
               total        used        free      shared  buff/cache   available
Mem:            30Gi        15Gi       2.1Gi       393Mi        13Gi        14Gi
Swap:             0B          0B          0B

All the packages were installed from RPMs (AlmaLinux9):

cat /etc/almalinux-release 
AlmaLinux release 9.3 (Shamrock Pampas Cat)

rpm -qa | grep -e postgresql -e wait_sampling
postgresql16-libs-16.3-1PGDG.rhel9.x86_64
postgresql16-debugsource-16.3-1PGDG.rhel9.x86_64
postgresql16-16.3-1PGDG.rhel9.x86_64
postgresql16-server-16.3-1PGDG.rhel9.x86_64
postgresql16-contrib-16.3-1PGDG.rhel9.x86_64
postgresql16-llvmjit-16.3-1PGDG.rhel9.x86_64
postgresql16-plpython3-16.3-1PGDG.rhel9.x86_64
postgresql16-debuginfo-16.3-1PGDG.rhel9.x86_64
pg_wait_sampling_16-1.1.6-1PGDG.rhel9.x86_64

Is there something more I can provide (set some logging settings) to provide more details to diagnose the issue?

Kind regards Ales

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions