Check if relation has storage in calculate_relation_size (#10477)

## Problem

Parent of partitioned table has no storage, it relfilelocator is zero.
It cab be incorrectly hashed and produce wrong results.

See https://github.com/neondatabase/postgres/pull/518

## Summary of changes

This problem is already addressed in pg17.
Add the same check for all other PG versions.

Postgres PRs:
https://github.com/neondatabase/postgres/pull/566
https://github.com/neondatabase/postgres/pull/565
https://github.com/neondatabase/postgres/pull/564

Co-authored-by: Konstantin Knizhnik <knizhnik@neon.tech>
This commit is contained in:
Konstantin Knizhnik
2025-01-24 14:43:52 +02:00
committed by GitHub
parent dcc437da1d
commit d8ab6ddb0f
4 changed files with 6 additions and 6 deletions

View File

@@ -5,14 +5,14 @@
],
"v16": [
"16.6",
"061d56377961ba56998e41b7d5d5e975919ad301"
"3cf7ce1afab75027716d14223f95ddb300754162"
],
"v15": [
"15.10",
"935292e883298187f112db6e9c7f765037ddcf64"
"355a7c69d3f907f3612eb406cc7b9c2f55d59b59"
],
"v14": [
"14.15",
"5f3b3afdd7c24b4a0fd63ecb3288fab472fcc633"
"c0aedfd3cac447510a2db843b561f0c52901b679"
]
}