Question about some changes in 11.3

From: Mat Arye <mat(at)timescale(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Question about some changes in 11.3
Date: 2019-05-24 21:05:34
Message-ID: CADsUR0AaPx4sVgmnuVJ_bOkocccQZGubv6HajzW826rbSmFpCg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

11.3 included some change to partition table planning. Namely
commit 925f46f ("Fix handling of targetlist SRFs when scan/join relation is
known empty.") seems to redo all paths for partitioned tables
in apply_scanjoin_target_to_paths. It clears the paths in:

```
if (rel_is_partitioned)
rel->pathlist = NIL
```

Then the code rebuild the paths. However, the rebuilt append path never
gets the
set_rel_pathlist_hook called. Thus, the work that hook did previously gets
thrown away and the rebuilt append path can never be influenced by this
hook. Is this intended behavior? Am I missing something?

Thanks,
Mat
TimescaleDB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Ashwin Agrawal 2019-05-24 22:37:08 Re: Zedstore - compressed in-core columnar storage
Previous Message Peter Geoghegan 2019-05-24 19:50:02 Re: Suppressing noise in successful check-world runs