graphql-engine/server/src-lib/Hasura
Karthikeyan Chinnakonda 44347d2d74 server: template the schema and table names in the event trigger PG functions
Earlier, while creating the event trigger's internal postgres trigger, we used to get the name of the table from the `TG_TABLE_NAME` special trigger variable. Using this with normal tables works fine, but it breaks when the parent table is partitioned because we associate the ET configuration in the schema only with the original table (as it should be).

In this PR, we supply the table name and schema name through template variables instead of using `TG_TABLE_NAME` and `TG_TABLE_SCHEMA`, so that event triggers work with a partitioned table as well.

TODO:

- [x] Changelog
- [x] unit test (ET on partition table)

GitOrigin-RevId: 556376881a85525300dcf64da0611ee9ad387eb0
2021-01-06 20:22:34 +00:00
..
Backends/Postgres server: support separate metadata database and server code setup for multi sources (#197) 2020-12-28 12:56:55 +00:00
Cache Support only the bounded cache, with default HASURA_GRAPHQL_QUERY_PLAN_CACHE_SIZE of 4000. Closes #5363 2020-07-28 19:02:44 -04:00
Eventing server: support separate metadata database and server code setup for multi sources (#197) 2020-12-28 12:56:55 +00:00
GraphQL server: fix issue when a non-nullable remote schema field was added as nullable (#279) 2021-01-05 14:47:52 +00:00
Incremental Merge pull request #113 from hasura/karthikeyan/remote-schema-permissions 2020-12-21 09:12:35 +00:00
Metadata server: support separate metadata database and server code setup for multi sources (#197) 2020-12-28 12:56:55 +00:00
RQL server: template the schema and table names in the event trigger PG functions 2021-01-06 20:22:34 +00:00
Server server: support separate metadata database and server code setup for multi sources (#197) 2020-12-28 12:56:55 +00:00
SQL server: schema that grows (#105) 2020-12-01 15:51:13 +00:00
App.hs server: support separate metadata database and server code setup for multi sources (#197) 2020-12-28 12:56:55 +00:00
EncJSON.hs server: heterogeneous execution of GraphQL queries (#5869) 2020-10-07 10:23:17 +00:00
GC.hs server: simplify shutdown logic, improve resource management (#218) (#195) 2020-12-21 18:56:57 +00:00
HTTP.hs improve debug information in actions errors response (close #4031) (#4432) 2020-04-24 13:25:51 +05:30
Incremental.hs Build the GraphQL context after pruning dangling dependents 2020-01-30 18:17:29 -06:00
Logging.hs server: simplify shutdown logic, improve resource management (#218) (#195) 2020-12-21 18:56:57 +00:00
Prelude.hs Merge pull request #223 from hasura/jberryman/5863-prep-refactoring 2020-12-20 06:53:38 +00:00
Session.hs Merge pull request #113 from hasura/karthikeyan/remote-schema-permissions 2020-12-21 09:12:35 +00:00
Tracing.hs Merge pull request #113 from hasura/karthikeyan/remote-schema-permissions 2020-12-21 09:12:35 +00:00