Thread

  1. Re: Switch buffile.c/h to use pgoff_t

    Bertrand Drouvot <bertranddrouvot.pg@gmail.com> — 2025-12-19T05:19:42Z

    Hi,
    
    On Fri, Dec 19, 2025 at 11:00:54AM +0800, Chao Li wrote:
    > Given MAX_PHYSICAL_FILESIZE is just 1G (2^30), why availbytes has to be pgoff_t instead of just int?
    
    I agree that int would work, but maybe it's using pgoff_t just to be on the safe
    side of things should MAX_PHYSICAL_FILESIZE become 2^31 or higher one day?
    
    Regards,
    
    -- 
    Bertrand Drouvot
    PostgreSQL Contributors Team
    RDS Open Source Databases
    Amazon Web Services: https://aws.amazon.com