Re: Struggling with 13->14 and anyarray -> anycompatiblearray
В списке pgsql-admin по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Struggling with 13->14 and anyarray -> anycompatiblearray |
| Дата | |
| Msg-id | 2491000.1667597489@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Struggling with 13->14 and anyarray -> anycompatiblearray (Wells Oliver <wells.oliver@gmail.com>) |
| Список | pgsql-admin |
Wells Oliver <wells.oliver@gmail.com> writes:
> Thanks. This seems to return aggregates where array_append is used with
> anyarray, but I now see aggregates where e.g. array_cat is used with
> anyarray. Is there some way to generally query aggregates where any array
> function might be looking for anyarray and need to be dropped/re-created
> with anycompatiblearray?
Looking for aggtranstype = 'anyarray'::regtype would give you a hit list,
but beware that not every one of those was changed. Looking at HEAD,
I see
postgres=# select aggfnoid::regprocedure from pg_aggregate where aggtranstype = 'anyarray'::regtype;
aggfnoid
---------------
max(anyarray)
min(anyarray)
(2 rows)
so you'd want to exclude those. (I guess just skipping ones with oid <
9999 would be enough to skip built-ins.)
regards, tom lane
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера