Commit Graph

1909 Commits (4ccabf9544219c4aa637f02d0b7ee6c98f6170ce)

Author SHA1 Message Date
Onder Kalaci 4ccabf9544 Increase timeout to keep appveyor happy 2018-06-25 18:40:40 +03:00
Onder Kalaci 7d0f7835e7 Improve relation accesses association to do less job 2018-06-25 18:40:40 +03:00
Onder Kalaci 8ccb8b679e Real-time executor marks multi shard relation accesses before opening connections 2018-06-25 18:40:31 +03:00
Onder Kalaci 2890154420 Make sure that TRUNCATE always opens a DDL access 2018-06-25 18:40:31 +03:00
Onder Kalaci 21038f0d0e Make sure that inter-shard DDL commands are always covers both tables 2018-06-25 18:40:30 +03:00
Onder Kalaci 2f01894589 Track relation accesses using the connection management infrastructure 2018-06-25 18:40:30 +03:00
Önder Kalacı 8520ecc460
Merge pull request #2232 from citusdata/start_non_data_access
Use non-data connection for intermediate results
2018-06-21 15:33:49 +03:00
Onder Kalaci d5472614df Use non-data connection for intermediate results
Make sure that intermediate results use a connection that is
not associated with any placement. That is useful in two ways:
    - More complex queries can be executed with CTEs
    - Safely use the same connections when there is a foreign key
      to reference table from a distributed table, which needs to
      use the same connection for modifications since the reference
      table might cascade to the distributed table.
2018-06-21 13:26:13 +03:00
Önder Kalacı 460eb6f295
Merge pull request #2229 from citusdata/improve_tests
Move test UDF under test folder
2018-06-21 09:29:54 +03:00
Onder Kalaci 7762d81cba Move test UDF under test folder 2018-06-21 08:42:44 +03:00
Jason Petersen 7a75c2ed31 Add connparam invalidation trigger creation logic
This needs to live in Community, since we haven't yet added the com-
plication of having divergent upgrade scripts in Enterprise.
2018-06-20 14:13:18 -06:00
Burak Velioglu 19cadf52ca
Merge pull request #2230 from citusdata/changelog-7.4.1
Add changelog entry for 7.4.1
2018-06-20 12:24:56 +03:00
velioglu 0ce613405e Add changelog entry for 7.4.1 2018-06-20 11:26:15 +03:00
Mehmet Furkan ŞAHİN 42be04551c
Merge pull request #2227 from citusdata/seq_create_distributed_table
create_distributed_table honors sequential mode
2018-06-19 22:03:14 +03:00
mehmet furkan şahin 2b2ce036eb create_distributed_table honors sequential mode 2018-06-19 17:33:45 +03:00
Önder Kalacı 0c47d16e8e
Merge pull request #2224 from citusdata/set_local_via_c
Implement C interface for setting GUC
2018-06-19 12:14:57 +03:00
Onder Kalaci 8f5821493a Implement C interface for setting GUC
We need the ability to switch to sequential mode (e.g.,
 SET LOCAL citus.multi_shard_modify_mode = 'sequential'). This
commit enables that.
2018-06-19 10:23:43 +03:00
Jason Petersen bdc44f0d29
Merge pull request #2222 from citusdata/fix_insert_select
Fix use-after-free that may occur for INSERT..SELECT in prepared statements

cr: @jasonmp85
2018-06-19 00:15:09 -06:00
Marco Slot f3f2805978
Fix use-after-free that may occur for INSERT..SELECT in prepared statements 2018-06-18 22:55:06 -06:00
Burak Velioglu 82829dfdc9
Merge pull request #2197 from citusdata/select_update_hash
Adds SELECT ... FOR UPDATE support for router plannable queries
2018-06-18 18:20:55 +03:00
velioglu 53b2e81d01 Adds SELECT ... FOR UPDATE support for router plannable queries 2018-06-18 13:55:17 +03:00
Marco Slot 28860b2469 Remove volatile explain plan from regression tests 2018-06-15 00:21:52 +02:00
Marco Slot 04da0cf9b1 Remove costs from explain plans in window_functions tests 2018-06-14 23:51:46 +02:00
Marco Slot 4686d49b14
Merge pull request #2215 from citusdata/fix_ref_table_failure
Always throw errors on failure on critical connection in router executor
2018-06-14 22:48:14 +02:00
Marco Slot 0bbe778760 Rename failOnError to alwaysThrowErrorOnFailure 2018-06-14 23:37:47 +02:00
Marco Slot 0feb1f2eb1 Do not call CheckRemoteTransactionsHealth from commit handler 2018-06-14 23:33:07 +02:00
Marco Slot bc1cc419e1 Fix could not receive query results error in regression test ouput 2018-06-14 23:33:07 +02:00
Marco Slot 4ab8e87090 Always throw errors on failure on critical connection in router executor 2018-06-14 23:33:07 +02:00
Nils Dijk 1c36ade64d
Merge pull request #2218 from citusdata/fix/session-user
refactor grantee serialization for reuse
2018-06-14 12:49:54 +02:00
Nils Dijk 73efcb22c4 Extract RoleSpecString and resolve role references 2018-06-14 11:38:42 +02:00
Jason Petersen 95e546ba5f
Merge pull request #2190 from citusdata/conninfo_guc
Add node_conninfo GUC and related logic

cr: @marcocitus
2018-06-13 12:26:36 -06:00
Jason Petersen 5bf7bc64ba Add pg_dist_authinfo schema and validation
This table will be used by Citus Enterprise to populate authentication-
related fields in outbound connections; Citus Community lacks support
for this functionality.
2018-06-13 11:16:26 -06:00
Jason Petersen 57b3f253c5
Add node_conninfo GUC and related logic
To support more flexible (i.e. not at compile-time) specification of
libpq connection parameters, this change adds a new GUC, node_conninfo,
which must be a space-separated string of key-value pairs suitable for
parsing by libpq's connection establishment methods.

To avoid rebuilding and parsing these values at connection time, this
change also adds a cache in front of the configuration params to permit
immediate use of any previously-calculated parameters.
2018-06-12 20:23:47 -06:00
Mehmet Furkan ŞAHİN a0651df574
Merge pull request #2205 from citusdata/foreign_refactoring
Foreign key code refactoring into ddl/foreign_constraint.c
2018-06-07 20:10:11 +03:00
mehmet furkan şahin d1a3b20115 foreign_constraint_utils is created 2018-06-07 18:19:24 +03:00
Önder Kalacı 39e681a0f5
Merge pull request #2194 from citusdata/seq_m_m_m_shards
master_modify_multiple_shards() and TRUNCATE honour `citus.multi_shard_modify_mode`
2018-06-07 17:39:46 +03:00
Önder Kalacı aeaa28c005
Merge pull request #2199 from citusdata/seq_realtime_select
Realtime executor honours multi_shard_modify_mode
2018-06-07 16:14:10 +03:00
Önder Kalacı e45036e3f2
Merge pull request #2198 from citusdata/seq_insert_select
INSERT .. SELECT pushdown honors multi_shard_modification_mode
2018-06-07 16:13:18 +03:00
Onder Kalaci a5370f5bb0 Realtime executor honours multi_shard_modify_mode
We're relying on multi_shard_modify_mode GUC for real-time SELECTs.
The name of the GUC is unfortunate, but, adding one more GUC
(or renaming the GUC) would make the UX even worse. Given that this
mode is mostly important for transaction blocks that involve modification
/DDL queries along with real-time SELECTs, we can live with the confusion.
2018-06-06 14:59:54 +03:00
Onder Kalaci d918556dca INSERT .. SELECT pushdown honors multi_shard_modification_mode 2018-06-06 12:42:23 +03:00
Onder Kalaci 336044f2a8 master_modify_multiple_shards() and TRUNCATE honors multi_shard_modification_mode 2018-06-06 12:29:05 +03:00
Önder Kalacı 87270911d3
Merge pull request #2189 from citusdata/seq_ddl_via_seq_router
DDL commands honour `citus.multi_shard_modify_mode`
2018-06-06 09:25:26 +03:00
Onder Kalaci 51cb24b39c Increase timeout to make the appveyor tests happy 2018-06-05 17:52:18 +03:00
Onder Kalaci df44956dc3 Make sure that sequential DDL opens a single connection to each node
After this commit DDL commands honour `citus.multi_shard_modify_mode`.

We preferred using the code-path that executes single task router
queries (e.g., ExecuteSingleModifyTask()) in order not to invent
a new executor that is only applicable for DDL commands that require
sequential execution.
2018-06-05 17:52:17 +03:00
Murat Tuncer 98b99634f3
Merge pull request #2167 from citusdata/serf
Add a debug message with distribution column value
2018-06-05 17:38:54 +03:00
Marco Slot fd4ff29f2f Add a debug message with distribution column value 2018-06-05 15:09:17 +03:00
Murat Tuncer 37bd4cd80c
Merge pull request #2195 from citusdata/push_grant
Add handling for grant/revoke all tables in schema
2018-05-31 14:26:52 +03:00
Murat Tuncer ba50e3f33e Add handling for grant/revoke all tables in schema 2018-05-31 13:47:02 +03:00
Jason Petersen b90c54abc0
Merge pull request #2170 from citusdata/master-update-version-1526383730
Bump Citus to 7.5devel

cr: @jasonmp85
2018-05-28 18:11:09 -06:00
Jason Petersen 49c85c2522
Fix windows citus_version 2018-05-28 17:43:39 -06:00