Erik Nordström
9b91665162
Fix crashes in functions using AlterTableInternal
...
A number of TimescaleDB functions internally call `AlterTableInternal`
to modify tables or indexes. For instance, `compress_chunk` and
`attach_tablespace` act as DDL commands to modify
hypertables. However, crashes occur when these functions are called
via `SELECT * INTO FROM <function_name>` or the equivalent `CREATE
TABLE AS` statement. The crashes happen because these statements are
considered process utility commands and therefore sets up an event
trigger context for collecting commands. However, the event trigger
context is not properly set up to record alter table statements in
this code path, thus causing the crashes.
To prevent crashes, wrap `AlterTableInternal` with the event trigger
functions to properly initialize the event trigger context.
2022-05-19 17:37:09 +02:00
..
2019-08-30 21:00:12 +02:00
2022-02-21 13:35:27 +03:00
2021-06-17 22:52:29 +02:00
2022-05-18 21:35:30 +02:00
2021-06-16 14:12:04 +02:00
2022-04-20 17:28:47 +02:00
2020-06-22 12:08:17 +02:00
2022-01-14 14:43:57 +01:00
2020-06-01 12:39:35 +02:00
2022-05-17 21:47:39 +02:00
2020-06-22 12:08:17 +02:00
2020-08-26 09:44:20 +02:00
2020-09-04 23:27:22 +02:00
2021-06-01 20:21:06 +02:00
2022-05-11 15:10:38 -04:00
2020-09-04 23:27:22 +02:00
2021-02-06 14:51:04 +01:00
2022-04-20 17:28:47 +02:00
2021-10-30 17:41:34 +02:00
2022-05-19 13:38:27 +02:00
2020-09-28 12:15:42 +02:00
2020-02-10 10:47:23 -05:00
2019-01-13 23:30:22 +01:00
2022-04-20 17:28:47 +02:00
2021-06-01 20:21:06 +02:00
2019-07-03 19:04:32 +02:00
2021-10-12 19:01:20 -03:00
2021-10-11 21:07:02 +02:00
2022-01-24 23:21:02 +01:00
2019-01-13 23:30:22 +01:00
2019-01-13 23:30:22 +01:00
2021-10-03 15:20:05 +02:00
2019-01-13 23:30:22 +01:00
2019-01-13 23:30:22 +01:00
2019-01-13 23:30:22 +01:00
2022-03-03 12:21:07 +01:00
2019-01-13 23:30:22 +01:00
2021-10-22 16:48:16 +05:30
2020-05-27 17:31:09 +02:00
2019-01-13 23:30:22 +01:00
2021-11-02 14:13:07 +01:00
2021-06-01 20:21:06 +02:00
2021-06-17 15:16:03 +02:00
2020-06-01 12:39:35 +02:00
2020-09-28 12:15:42 +02:00
2021-03-25 19:44:15 +01:00
2020-10-16 08:55:30 -04:00
2022-01-17 11:45:12 -03:00
2019-08-21 14:37:29 -04:00
2020-04-14 23:12:15 +02:00
2020-04-14 23:12:15 +02:00
2021-06-01 20:21:06 +02:00
2019-01-13 23:30:22 +01:00
2021-06-01 20:21:06 +02:00
2021-10-11 21:07:02 +02:00
2020-06-01 12:39:35 +02:00
2021-01-29 21:45:48 +01:00
2019-01-13 23:30:22 +01:00
2021-11-08 09:21:21 +01:00
2021-06-17 15:16:03 +02:00
2019-01-13 23:30:22 +01:00
2021-07-12 14:08:05 +02:00
2021-06-01 20:21:06 +02:00
2021-01-29 21:45:48 +01:00
2020-06-22 12:08:17 +02:00
2021-06-01 20:21:06 +02:00
2020-10-02 08:52:20 +02:00
2020-04-14 23:12:15 +02:00
2021-06-17 15:16:03 +02:00
2022-03-07 16:38:40 -03:00
2021-06-01 20:21:06 +02:00
2022-02-09 14:11:16 +05:30
2019-01-13 23:30:22 +01:00
2020-04-14 23:12:15 +02:00
2022-05-19 17:37:09 +02:00
2022-02-08 09:44:55 +01:00
2022-02-28 16:53:01 +01:00
2021-09-03 17:36:29 +03:00
2022-04-20 16:11:24 +02:00
2022-04-19 05:16:15 +02:00
2022-01-17 17:36:33 +01:00
2021-01-29 21:45:48 +01:00
2019-04-30 22:57:12 +02:00
2019-01-13 23:30:22 +01:00
2021-10-09 00:36:10 +02:00
2021-10-09 00:36:10 +02:00
2020-12-07 18:10:26 +01:00