Re: Inconsistent use of relpages = -1

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jeff Davis <pgsql(at)j-davis(dot)com>
Cc: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Inconsistent use of relpages = -1
Date: 2024-10-23 17:20:27
Message-ID: 2273935.1729704027@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Jeff Davis <pgsql(at)j-davis(dot)com> writes:
> It bothers me somewhat that views still have relpages=0, because they
> also don't have storage. Thoughts?

I think it's fine, because they also have reltuples=0. The
combination of those two zeroes indicates ignorance as to
the rel's contents. If either field is not zero, though, then
the combination ought to be sensible.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Borisov 2024-10-23 17:29:39 Re: Refine comments on usage WL_POSTMASTER_DEATH vs WL_EXIT_ON_PM_DEATH
Previous Message Jeff Davis 2024-10-23 17:05:00 Re: Inconsistent use of relpages = -1