Burak Yücesoy
c618a46a35
Merge pull request #1118 from citusdata/reword_outer_repartition_error_message
...
Reword error message for outer joins requiring repartition
2017-01-23 11:02:21 +03:00
Burak Yucesoy
4bb9842660
Reword error message for outer joins requiring repartition
...
We changed error message which appears when user tries to execute outer join command and
that command requires repartitioning. Old error message mentioned about 1-to-1 shard
partitioning which may not be clear to user.
2017-01-23 10:42:36 +03:00
Marco Slot
1bf8efee67
Merge pull request #1156 from citusdata/enable_deadlock_prevention
...
Add an enable_deadlock_prevention flag to enable transactions across nodes
2017-01-22 22:06:54 +04:00
Marco Slot
ac919337f1
Add an enable_deadlock_prevention flag to allow router transactions to expand to multiple nodes
2017-01-22 17:31:24 +01:00
Marco Slot
aa7b3e7f01
Merge pull request #1157 from citusdata/unique_job_id
...
Ensure job IDs are unique across workers
2017-01-22 20:06:31 +04:00
Marco Slot
190fce2f70
Ensure job IDs are unique across workers
2017-01-22 16:55:14 +01:00
Andres Freund
dbba78735c
Merge pull request #1155 from citusdata/feature/connection_cleanup
...
Remove parts of old connection / transaction infrastructure
2017-01-21 09:11:31 -08:00
Andres Freund
a596858463
Remove connection_cache.[ch].
2017-01-21 09:01:15 -08:00
Andres Freund
0bdb22268f
Remove remnants of commit_protocol.[ch].
2017-01-21 09:01:15 -08:00
Andres Freund
9d3d6a2c22
Consistently libpq forward declaration in remote_commands.h.
2017-01-21 09:01:14 -08:00
Andres Freund
f3cbe57c60
Minimal citus tools conversion to new connection API.
2017-01-21 09:01:14 -08:00
Önder Kalacı
80e66df499
Merge pull request #1148 from citusdata/fix_command_counter_increment
...
Improve heap access methods for upgrading to reference tables
2017-01-21 09:33:13 +02:00
Önder Kalacı
5a7ba99abf
Merge branch 'master' into fix_command_counter_increment
2017-01-21 09:21:19 +02:00
Andres Freund
ca5c24a119
Merge pull request #1133 from citusdata/copy_with_new_connection_api
...
Convert multi_copy to new connection api
2017-01-20 22:22:50 -08:00
Murat Tuncer
299d002f1c
Convert multi copy to use new connection api
...
This enables proper transactional behaviour for copy and relaxes some
restrictions like combining COPY with single-row modifications. It
also provides the basis for relaxing restrictions further, and for
optionally allowing connection caching.
2017-01-20 19:15:19 -08:00
Jason Petersen
d283c05290
Merge pull request #1151 from citusdata/default_rep_factor_one
...
Change default replication factor to one
cr: @anarazel
2017-01-20 19:11:02 -07:00
Jason Petersen
5a66dc8278
Change default replication factor to one
...
Took the quick-and-dirty approach of changing it back to two during
test runs. Can update tests to expect one in due time.
2017-01-20 18:56:43 -07:00
Joe Nelson
a8fc8358e2
Merge pull request #1152 from citusdata/craig-readme-update
...
Suggest cloud in getting started section of README
2017-01-20 16:51:04 -08:00
Joe Nelson
422a00794c
Suggest cloud in quickstart
...
Plus other updates
2017-01-20 16:39:04 -08:00
Andres Freund
df11634bba
Merge pull request #1146 from citusdata/explain_duplication
...
Don't duplicate planner logic in multi_explain.c
2017-01-20 13:58:48 -08:00
Andres Freund
2b58ac24dc
Mark some now unnecessarily exposed multi_planner.c functions static.
2017-01-20 12:31:56 -08:00
Andres Freund
14ecb58159
Don't duplicate planning logic in citus' explain hook.
...
Instead use pg_plan_query() like the normal explain does, and use that
to explain the query. That's important because it allows to remove
the duplicated planner logic from multi_explain - and that logic is
about to get more complicated.
2017-01-20 12:31:28 -08:00
Andres Freund
2ec404a122
Remove citus.explain_multi_logical/physical_plan.
...
They make fixing explain for prepared statement harder, and they don't
really fit into EXPLAIN in the first place. Additionally they're
currently not exercised in any tests.
2017-01-20 12:31:19 -08:00
Onder Kalaci
472ac3e37d
Improve heap access methods
...
This commit improves heap access methods for reference table
upgrade and colocation group modifications.
2017-01-20 14:53:29 +02:00
Metin Döşlü
578ee0077e
Merge pull request #1145 from citusdata/tenant_isolation_community
...
Tenant isolation
2017-01-20 13:49:04 +02:00
Metin Doslu
099ef88238
Add a function to delete shard metadata from MX nodes
2017-01-20 14:38:01 +02:00
Metin Doslu
09ca6a464f
Refactor get_shard_id_for_distribution_column() and other minor changes
2017-01-20 14:38:01 +02:00
Metin Doslu
08e285dd67
Return a deep copy shard list from ColocatedShardIntervalList()
2017-01-20 14:38:01 +02:00
Metin Doslu
dd7c0bcb0c
Add worker_hash() and a stub for isolate_tenant_to_new_shard()
2017-01-20 14:38:01 +02:00
Jason Petersen
afdab4ddf0
Merge pull request #1143 from citusdata/remove_hint_from_master_remove_node
...
Remove hint message from master_remove_node UDF
cr: @jasonmp85
2017-01-18 22:43:47 -07:00
Murat Tuncer
d9dd275700
Remove hint message from master_remove_node UDF
...
Hint about master_disable_node was giving wrong
impression to users. Removal is better than keeping it.
2017-01-18 22:33:00 -07:00
Eren Başak
bc2cfa7323
Merge pull request #1103 from citusdata/mx/reference_table_support
...
MX Support for Reference Tables
2017-01-18 17:15:12 +02:00
Eren Basak
0fa203b150
Prevent COPY to reference tables from worker nodes
2017-01-18 17:38:01 +03:00
Eren Basak
ce8f9d0819
Make `upgrade_to_reference_table` function MX-compatible
2017-01-18 16:49:50 +03:00
Eren Basak
4c8c5da7f1
Propagate metadata changes for deleted reference table placements on master_remove_node call
2017-01-18 16:00:07 +03:00
Eren Basak
fa0b36b28c
Propagate new reference table placement metadata on `master_add_node`
2017-01-18 15:59:06 +03:00
Eren Basak
c8fafa1ffb
Make reference table metadata synced to workers
2017-01-18 15:59:05 +03:00
Eren Basak
86e772e4ae
Propagate Metadata to Workers on `create_reference_table` call.
2017-01-18 11:05:24 +03:00
Eren Başak
a7f8d4bc88
Merge pull request #1090 from citusdata/mx_sequences
...
Add Sequence Support For MX Tables
2017-01-18 09:18:33 +02:00
Eren Basak
096be1dde5
Add Sequence Support for MX Tables
...
This change adds support for serial columns to be used with MX tables.
Prior to this change, sequences of serial columns were created in all
workers (for being able to create shards) but never used. With MX, we
need to set the sequences so that sequences in each worker create
unique values. This is done by setting the MINVALUE, MAXVALUE and
START values of the sequence.
2017-01-18 09:43:38 +03:00
Eren Basak
139e87a0ad
Create Invalidation Trigger for pg_dist_local_group Table Updates
2017-01-18 09:43:38 +03:00
Andres Freund
f0f54a4366
Merge pull request #1139 from citusdata/fix-1138
...
Query placementId in RemoteFinalizedShardPlacementList().
2017-01-17 13:49:53 -08:00
Andres Freund
5f4c85f1c4
Query placementId in RemoteFinalizedShardPlacementList().
...
Not having the id in the ShardPlacement struct causes issues while
making copy use the placement aware connection management.
2017-01-17 13:27:26 -08:00
Brian Cloutier
b74fe324bc
Port WorkerShardStats to new connection API
...
Part of the work in citusdata/citus#1101 , this is a pretty direct port
over to the new functions and shouldn't result in any behavior changes.
2017-01-17 17:04:37 +02:00
Brian Cloutier
213c24524d
Create ExecuteOptionalRemoteCommand
...
A small refactor which pulls some code out of `RecoverWorkerTransactions`
and into `remote_commands.c`. This code block currently only occurs in
`RecoverWorkerTransactions` but will be useful to other functions
shortly.
Unfortunately we couldn't call it `ExecuteRemoteCommand`, that name was
already taken.
2017-01-17 17:04:37 +02:00
Brian Cloutier
da976e42ba
Pass entire ShardPlacement into WorkerShardStats
...
A small refactor so we'll be able to call the new connection API (which
requires having a ShardPlacement) from within WorkerShardStats.
2017-01-17 17:04:37 +02:00
Andres Freund
508619cedc
Merge pull request #1120 from citusdata/feature/colocation_mapping
...
Colocation aware placement connections
2017-01-16 13:54:59 -08:00
Andres Freund
650f25d01a
Make placement_connection.c colocation aware.
...
Because of foreign keys and similar concerns there should only be a
single modifying/DDL connection for a set of colocated placements to a
node. To enforce placement_connection.c now has an additional
hash-table keeping track of the connections to a set of colocated
placements. In addition to enforcing per placement restrictions on
connections, there's now very similar restrictions for sets of
colocated placements.
2017-01-16 13:47:01 -08:00
Andres Freund
9d43ad7b07
Add ShardPlacement fields required for colocated placement connection mapping.
2017-01-16 13:42:54 -08:00
Andres Freund
cdc4e22be7
Fix use of wrong constant.
...
This could potentially lead to spuriously shared connections if the
first 63 characters of a hostname are the same.
2017-01-16 13:42:53 -08:00