diff options
author | David Rowley <drowley@postgresql.org> | 2024-07-04 09:44:34 +1200 |
---|---|---|
committer | David Rowley <drowley@postgresql.org> | 2024-07-04 09:44:34 +1200 |
commit | 4331a11c62eca7426ad4472be051fe512a04fc80 (patch) | |
tree | cce4c15fb2fb0d08c0a573d258f8a5d241bc3f41 /src/backend/parser/parse_expr.c | |
parent | 2329cad1b93f268c0ec6848732c6db43eb46156c (diff) | |
download | postgresql-4331a11c62eca7426ad4472be051fe512a04fc80.tar.gz postgresql-4331a11c62eca7426ad4472be051fe512a04fc80.zip |
Remove incorrect Asserts in buffile.c
Both BufFileSize() and BufFileAppend() contained Asserts to ensure the
given BufFile(s) had a valid fileset. A valid fileset isn't required in
either of these functions, so remove the Asserts and adjust the
comments accordingly.
This was noticed while work was being done on a new patch to call
BufFileSize() on a BufFile without a valid fileset. It seems there's
currently no code in the tree which could trigger these Asserts, so no
need to backpatch this, for now.
Reviewed-by: Peter Geoghegan, Matthias van de Meent, Tom Lane
Discussion: https://postgr.es/m/CAApHDvofgZT0VzydhyGH5MMb-XZzNDqqAbzf1eBZV5HDm3%2BosQ%40mail.gmail.com
Diffstat (limited to 'src/backend/parser/parse_expr.c')
0 files changed, 0 insertions, 0 deletions