Commit Graph

537 Commits (6f4f2105b8fad2be95f1aa90a46481f21967cb31)

Author SHA1 Message Date
Onder Kalaci 6f4f2105b8 Update the parameter id 2016-10-24 15:18:40 +03:00
Onder Kalaci 6366eebee6 minor fix on function declarations 2016-10-24 15:18:28 +03:00
Onder Kalaci 101bb8f554 Switch to new API for colocation 2016-10-24 15:18:28 +03:00
Onder Kalaci 726ea93ca0 Allow CTEs 2016-10-24 15:18:28 +03:00
Onder Kalaci de6bce36c9 fix regression test failure 2016-10-24 15:18:27 +03:00
Onder Kalaci ad552564d6 Add shard range to the top level query 2016-10-24 15:18:27 +03:00
Onder Kalaci e996bcffb3 add test for views -- they don't work 2016-10-24 15:18:27 +03:00
Onder Kalaci 3ca181fea8 Increate subquery test coverage 2016-10-24 15:18:27 +03:00
Onder Kalaci 3a7e10a9b1 refactor definition of routable queries 2016-10-24 15:18:26 +03:00
Onder Kalaci 9c0bb3fb00 Revert "temp commit for multi task router"
This reverts commit c05ccde171ea254faffdc0e605e05e1b3ef0c576.
2016-10-24 15:18:26 +03:00
Onder Kalaci 66ab79bc42 temp commit for multi task router 2016-10-24 15:18:26 +03:00
Onder Kalaci 56651c7511 improve comments/ error checks for CTEs and set operations 2016-10-24 15:18:26 +03:00
Onder Kalaci 6658048b36 Fix compile time warnings 2016-10-24 15:18:25 +03:00
Onder Kalaci 829ed1ef5d Get the integer comparison ops from the catalog 2016-10-24 15:18:25 +03:00
Onder Kalaci c0603a51c5 Rename hidden to uninstantiated 2016-10-24 15:18:25 +03:00
Onder Kalaci 8fd06f63f9 Apply some of the code-review feedback 2016-10-24 15:18:25 +03:00
Onder Kalaci 94130b76ef Use better way to extract INSERT/SELECT RTEs 2016-10-24 15:18:25 +03:00
Onder Kalaci de3a16405f Refactor CreateMultiTaskRouterPlan not pass query 2016-10-24 15:18:24 +03:00
Onder Kalaci 11d0476153 Refactor RouterSelectTask/RouterSelectQuery - remove query parameter since it is not required at all 2016-10-24 15:18:24 +03:00
Onder Kalaci 0d0642f5a3 Rename a function 2016-10-24 15:18:24 +03:00
Onder Kalaci 616f370885 9.6 integration 2016-10-24 15:18:24 +03:00
Onder Kalaci 1c1803dd3b add zero shard query 2016-10-24 15:18:23 +03:00
Onder Kalaci 983163761f Improve locking semantics 2016-10-24 15:18:23 +03:00
Onder Kalaci 916d8ef406 apply some of the reviews 2016-10-24 15:18:23 +03:00
Onder Kalaci 1f74364b23 Apply first pass of review feedback 2016-10-24 15:18:23 +03:00
Onder Kalaci 3bcd4ef83e First version of INSERT .. SELECT 2016-10-24 15:18:21 +03:00
Onder Kalaci 522fa9a299 Add ability to reorder target list for INSERT/SELECT queries
The necessity for this functionality comes from the fact that ruleutils.c is not supposed to be
used on "rewritten" queries (i.e. ones that have been passed through QueryRewrite()).
Query rewriting is the process in which views and such are expanded,
and, INSERT/UPDATE targetlists are reordered to match the physical order,
defaults etc. For the details of reordeing, see transformInsertRow().
2016-10-24 15:17:56 +03:00
Marco Slot f5ae4330be Merge pull request #885 from citusdata/feature/parallel_ddl
Parallelise DDL commands
2016-10-24 13:29:51 +02:00
Marco Slot 271b20a23e Parallelise DDL commands 2016-10-24 12:39:08 +02:00
Burak Yücesoy 18f6c9c1a7 Merge pull request #888 from citusdata/foreign_key_support_for_create_table
Foreign key support for create table
2016-10-21 16:48:07 +03:00
Burak Yucesoy 5a03acf2bf Foreign Constraint Support for create_distributed_table and shard move
With this change, we now push down foreign key constraints created during CREATE TABLE
statements. We also start to send foreign constraints during shard move along with
other DDL statements
2016-10-21 15:38:55 +03:00
Marco Slot 84babaa58e Merge pull request #895 from citusdata/bugfix/evaluation
Re-disable master evaluation for SELECT
2016-10-21 11:38:11 +02:00
Marco Slot 02d2b86e68 Re-disable master evaluation for SELECT 2016-10-21 10:51:47 +02:00
Metin Döşlü 2dcca0939b Merge pull request #892 from citusdata/add_create_reference_table_udf
Add create_reference_table()
2016-10-20 15:41:38 +03:00
Metin Doslu 405335fcee Add create_reference_table()
create_reference_table() creates a hash distributed table with shard count
equals to 1 and replication factor equals to shard_replication_factor
configuration value.
2016-10-20 15:29:30 +03:00
Metin Döşlü b6a9b61d32 Merge pull request #867 from citusdata/add_create_distributed_table
Add create_distributed_table() udf
2016-10-20 11:43:25 +03:00
Metin Doslu d3e7d9dc8d Final refactoring 2016-10-20 11:29:11 +03:00
Metin Doslu 58ac477ffb Change return type of BuildDistributionKeyFromColumnName() to Var *
BuildDistributionKeyFromColumnName() always returns a Var pointer, so there is
no reason to return a Node pointer instead of a Var pointer.
2016-10-20 10:59:31 +03:00
Metin Doslu 161093908e Convert colocationid to uint32 2016-10-20 10:59:31 +03:00
Metin Doslu 8334d853c0 Add local function GetNextShardId() 2016-10-20 10:59:31 +03:00
Metin Doslu 40bdafa8d1 Add create_distributed_table()
create_distributed_table() creates a hash distributed table with default values
of shard count and shard replication factor.
2016-10-20 10:58:25 +03:00
Metin Doslu d04f4f5935 Add guc variable for shard count 2016-10-19 10:44:50 +03:00
Marco Slot 98e0648d40 Merge pull request #855 from citusdata/feature/parallel_modify
Parallelise master_modify_multiple_shards and other things
2016-10-19 09:46:28 +03:00
Marco Slot 65f6d7c02a Follow consistent execution order in parallel commands 2016-10-19 08:33:08 +02:00
Marco Slot a497e7178c Parallelise master_modify_multiple_shards 2016-10-19 08:33:08 +02:00
Marco Slot 9d98acfb6d Move requiresMasterEvaluation from Task to Job 2016-10-19 08:23:06 +02:00
Marco Slot 213d8419c6 Refactor and redocument executor shard lock code 2016-10-19 08:13:35 +02:00
Jason Petersen bd9a433709 Merge pull request #850 from citusdata/add_9.6_support
Support PostgreSQL 9.6

cr: @anarazel
2016-10-18 16:30:30 -06:00
Andres Freund ac14b2edbc
Support PostgreSQL 9.6
Adds support for PostgreSQL 9.6 by copying in the requisite ruleutils
file and refactoring the out/readfuncs code to flexibly support the
old-style copy/pasted out/readfuncs (prior to 9.6) or use extensible
node APIs (in 9.6 and higher).

Most version-specific code within this change is only needed to set new
fields in the AggRef nodes we build for aggregations. Version-specific
test output files were added in certain cases, though in most they were
not necessary. Each such file begins by e.g. printing the major version
in order to clarify its purpose.

The comment atop citus_nodes.h details how to add support for new nodes
for when that becomes necessary.
2016-10-18 16:23:55 -06:00
Murat Tuncer a2f6b29a6d Merge pull request #843 from citusdata/custom_udf_run_all
Add Citus tools UDFs
2016-10-18 21:26:56 +03:00