Dipesh Pandit c507f31069
Internal Server Error when loading Explorer tab (#5723)
Internal Server Error when loading Explorer tab (SDC #995)
    
    This is with reference to a weird scenarios where chunk table entry exist in
    timescaledb catalog but it does not exist in PG catalog. The stale entry blocks
    executing hypertable_size function on the hypertable.
    
    The changes in this patch are related to improvements suggested for
    hypertable_size function which involves:
    1. Locking the hypertable in ACCESS SHARE mode in function hypertable_size to
    avoid risk of chunks being dropped by another concurrent process.
    2. Joining the hypertable and inherited chunk tables with "pg_class" to make
    sure that a stale table without an entry is pg_catalog is not included as part
    of hypertable size calculation.
    3. An additional filter (schema_name) is required on pg_class to avoid
    calculating size of multiple hypertables with same in different schema.
    
    NOTE: With this change calling hypertable_size function will require select
    privilege on the table.

Disable-check: force-changelog-file
2023-06-01 19:34:47 +05:30
..
2023-05-25 18:22:32 +02:00
2023-05-25 18:22:32 +02:00
2022-11-11 13:59:42 +01:00
2020-07-29 15:30:39 -04:00
2019-04-26 13:08:00 -04:00
2023-04-12 11:00:18 +02:00
2023-02-28 16:32:03 +05:30