Commit Graph

1924 Commits (2fa4e38841b575d4adb6aa09c72a2ee7ec42a28c)

Author SHA1 Message Date
mehmet furkan şahin 2fa4e38841 FK from dist to ref can be added with alter table 2018-07-03 17:05:01 +03:00
Murat Tuncer 58486fd1b9
Merge pull request #2247 from citusdata/enable_preloading_libraries
Add pg_stat_statements to shared_preload_libraries if installed
2018-07-03 16:59:34 +03:00
Murat Tuncer 3fc98e8225 Add pg_stat_statements to shared_preload_libraries if installed 2018-07-03 16:33:15 +03:00
Murat Tuncer 54aa865c3c
Merge pull request #2249 from citusdata/landlord_base
Update citus_stat_statements view and regression tests
2018-07-03 16:32:47 +03:00
Murat Tuncer 23800f50f1 Update citus_stat_statements view and regression tests 2018-07-03 16:14:13 +03:00
Murat Tuncer 493e3b1b9e
Merge pull request #2248 from citusdata/partition_key_extraction_fix
Strip implicit coercions when determining partition key value of an INSERT
2018-07-02 18:21:16 +03:00
Murat Tuncer e532755a6e Fix bug in partition column extraction
added strip_implicit_coercion prior to
checking if the expression is Const.
This is important to find values for types
like bigint.
2018-07-02 18:08:16 +03:00
Murat Tuncer a3f1350bfe
Merge pull request #2246 from citusdata/bump-tools-version
Bump tools version in .travis.yml
2018-07-02 15:44:36 +03:00
Burak Yucesoy 06589131d7 Bump tools version in .travis.yml
To be able to test landlord in travis, we need pg_stat_statements from
contrib packages. New tools version, 0.7.8, installs pg_stat_statements
too, so we are switching to version 0.7.8 in our travis tests.
2018-07-02 14:55:23 +03:00
Murat Tuncer 1c95d5d497
Merge pull request #2242 from citusdata/master_stage_protocol_refactoring
Apply master_stage_protocol refactoring changes
2018-06-28 14:23:48 +03:00
Murat Tuncer 3fc7cdfe6d Apply master_stage_protocol refactoring changes 2018-06-28 11:24:57 +03:00
Murat Tuncer 86a3dd5a90
Merge pull request #2235 from citusdata/landlord_base
Add groundwork for citus_stat_statements api
2018-06-27 14:47:18 +03:00
Murat Tuncer 4d35b92016 Add groundwork for citus_stat_statements api 2018-06-27 14:20:03 +03:00
Brian Cloutier 5ce18327a7 Don't spinloop when trying to cleanup a failed connection 2018-06-26 13:13:34 -07:00
Önder Kalacı d63cbf3822
Merge pull request #2220 from citusdata/relation_access_via_placement_access
Track relation accesses using the connection management infrastructure
2018-06-25 22:52:57 +03:00
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