On 1/25/18 09:40, Tom Lane wrote: > Peter Eisentraut <peter.eisentr...@2ndquadrant.com> writes: >> On 1/23/18 13:39, Robert Haas wrote: >>> I don't understand. AAUI, it is currently the case that if you set >>> the options before the TOAST table exists, they are lost. > >> Well, that's also weird. > > Well, maybe the right answer is to address that. It's clear to me > why that would happen if we store these things as reloptions on the > toast table, but can't they be stored on the parent table?
I don't think there is a case where this can currently be a problem with the current options set, but here is what I was thinking about: Imagine there were a setting toast.fillfactor or something like that that affects the storage layout of the TOAST table. If you ran ALTER TABLE mytbl ADD COLUMN foo text DEFAULT somelongvalue(); then you would conceivably want to set TOAST-related reloptions before the TOAST table is created and have them apply as the TOAST table is being first populated. Again, currently not a problem, I think. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services