From: | Heikki Linnakangas <hlinnaka(at)iki(dot)fi> |
---|---|
To: | Pg Bugs <pgsql-bugs(at)postgresql(dot)org> |
Subject: | DSA_ALLOC_NO_OOM doesn't work |
Date: | 2024-01-29 12:06:01 |
Message-ID: | 5efa4a5e-2b8b-42dd-80ed-f920718cf5c0@iki.fi |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-hackers |
If you call dsa_allocate_extended(DSA_ALLOC_NO_OOM), it will still
ereport an error if you run out of space (originally reported at [0]).
Attached patch adds code to test_dsa.c to demonstrate that:
postgres=# select test_dsa_basic();
ERROR: could not resize shared memory segment "/PostgreSQL.1312700148"
to 1075843072 bytes: No space left on device
[0] https://github.com/pgvector/pgvector/issues/434#issuecomment-1912744489
--
Heikki Linnakangas
Neon (https://neon.tech)
Attachment | Content-Type | Size |
---|---|---|
test-DSA_ALLOC_NO_OOM.patch | text/x-patch | 635 bytes |
From | Date | Subject | |
---|---|---|---|
Next Message | Tender Wang | 2024-01-29 14:36:27 | Re: BUG #18314: PARALLEL UNSAFE function does not prevent parallel index build |
Previous Message | Heikki Linnakangas | 2024-01-29 11:48:44 | Re: MarkBufferDirty Assert held LW_EXCLUSIVE lock fail when ginFinishSplit |
From | Date | Subject | |
---|---|---|---|
Next Message | Tomas Vondra | 2024-01-29 12:17:07 | Re: scalability bottlenecks with (many) partitions (and more) |
Previous Message | Jelte Fennema-Nio | 2024-01-29 12:01:36 | Re: UUID v7 |