Wrong off type in smgrfd and mdfd

From: 邱宇航 <iamqyh(at)gmail(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Wrong off type in smgrfd and mdfd
Date: 2025-07-04 09:22:31
Message-ID: FB981645-5E05-4929-B31A-8EA0649D21C3@gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

While reading code, I notice off in mdfd is an uint32, which might be
problematic. Considering enlarge segsize to 8GB and even larger, the off
might be overflowed. So I change it to off_t.

Best regards,
Yuhang Qiu

Attachment Content-Type Size
0001-Change-off-in-mdfd-from-uint32-to-off_t.patch application/octet-stream 2.8 KB

Browse pgsql-hackers by date

  From Date Subject
Next Message Yura Sokolov 2025-07-04 09:25:03 Re: Add 64-bit XIDs into PostgreSQL 15
Previous Message Xuneng Zhou 2025-07-04 08:57:22 Re: Add progressive backoff to XactLockTableWait functions