Re: [PATCH][PROPOSAL] Refuse setting toast.* reloptions when TOASTtable does not exist
От | Peter Eisentraut |
---|---|
Тема | Re: [PATCH][PROPOSAL] Refuse setting toast.* reloptions when TOASTtable does not exist |
Дата | |
Msg-id | 65158ea5-46d0-c5a1-1c23-a45ee21ffb85@2ndquadrant.com обсуждение исходный текст |
Ответ на | Re: [PATCH][PROPOSAL] Refuse setting toast.* reloptions when TOAST table does not exist (Tom Lane <tgl@sss.pgh.pa.us>) |
Список | pgsql-hackers |
On 1/25/18 09:40, Tom Lane wrote: > Peter Eisentraut <peter.eisentraut@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
В списке pgsql-hackers по дате отправления: