Andres Freund
0ebdd26b58
Remove 9.5 support from configure and travis.
...
This effectively disables 9.5 support, but all the supporting code is
still there. Subsequent commits will remove that.
2017-06-26 08:46:32 -07:00
Jason Petersen
2204da19f0
Support PostgreSQL 10 ( #1379 )
...
Adds support for PostgreSQL 10 by copying in the requisite ruleutils
and updating all API usages to conform with changes in PostgreSQL 10.
Most changes are fairly minor but they are numerous. One particular
obstacle was the change in \d behavior in PostgreSQL 10's psql; I had
to add SQL implementations (views, mostly) to mimic the pre-10 output.
2017-06-26 02:35:46 -06:00
Andres Freund
71a4e90e82
Merge pull request #1461 from citusdata/feature/maintenanced
...
Add automatically started per-database Maintenance Worker
2017-06-23 12:12:31 -07:00
Andres Freund
4a3b2de4c5
Add some tests checking that maintenance daemon gets started.
...
The 2nd database one is a bit slow, but also shows something
important, so we might want to keep it?
2017-06-23 11:53:39 -07:00
Andres Freund
c3b7c5dc33
Introduce per-database maintenance process.
...
This will be used for deadlock detection, prepared transaction
recovery amongst others, but currently is just idling around.
2017-06-23 11:53:39 -07:00
Andres Freund
3483bb99eb
Minimal infrastructure for per-backend citus initialization.
2017-06-23 11:20:10 -07:00
Andres Freund
1691f780fd
Force cache invalidation machinery to be initialized earlier.
...
Previously it was not guaranteed that invalidations were registered
after creating the extension, only if the extension was used
afterwards.
2017-06-23 11:20:10 -07:00
Andres Freund
f645dca593
Centralized metadata_cache cache variables into one struct, to avoid missing resets.
...
E.g. extensionOwner was already missed.
2017-06-23 11:20:10 -07:00
Marco Slot
04e4b7d82a
Fix spuriously failing regression test
2017-06-23 10:06:15 +02:00
Marco Slot
dc799c6e5e
Merge pull request #1468 from citusdata/test_column_name
...
Add weird column name test for create_distributed_table
2017-06-22 17:14:17 +02:00
Marco Slot
6cafbf9b66
Add weird column name to create_distributed_table test
2017-06-22 16:27:39 +02:00
Marco Slot
ce28b6af0d
Merge pull request #1402 from citusdata/local_insert_select
...
Perform INSERT..SELECT via coordinator if it cannot be pushed down
2017-06-22 16:23:34 +02:00
Marco Slot
a6f42e4948
Clarify error message when copying NULL value into table
2017-06-22 15:48:24 +02:00
Marco Slot
2f8ac82660
Execute INSERT..SELECT via coordinator if it cannot be pushed down
...
Add a second implementation of INSERT INTO distributed_table SELECT ... that is used if
the query cannot be pushed down. The basic idea is to execute the SELECT query separately
and pass the results into the distributed table using a CopyDestReceiver, which is also
used for COPY and create_distributed_table. When planning the SELECT, we go through
planner hooks again, which means the SELECT can also be a distributed query.
EXPLAIN is supported, but EXPLAIN ANALYZE is not because preventing double execution was
a lot more complicated in this case.
2017-06-22 15:46:30 +02:00
Marco Slot
2cd358ad1a
Support quoted column-names in COPY logic
2017-06-22 15:45:57 +02:00
Marco Slot
155db4d913
Simplify router planner call path
2017-06-22 15:45:57 +02:00
Murat Tuncer
0c4bf2d943
Remove fall back to select if poll is not available ( #1466 )
...
poll is supported on all relevant systems, there is no
need to have a fall back mechanism to use select()
2017-06-22 12:11:18 +03:00
Jason Petersen
294aeff2ed
Don't call PostProcessUtility for local commands
...
It is intended only to aid in processing of distributed DDL commands,
but as written could execute during local CREATE INDEX CONCURRENTLY
commands.
2017-06-19 15:56:03 -06:00
Burak Yücesoy
0f284c9adf
Merge pull request #1416 from citusdata/test_cache
...
Use cached PostgreSQL build to reduce testing time
2017-06-19 17:37:01 +03:00
Burak Yucesoy
f3109d9380
Use cached PostgreSQL build to reduce testing time
...
With this PR, we started to cache custom compiled PostgreSQL builds. If there
are no new commits to the related PostgreSQL branches, we will use already
compiled binaries to reduce testing time.
2017-06-19 11:12:41 +03:00
Burak Velioglu
bfde7fcd5a
Merge pull request #1454 from citusdata/phase_out_execute_remote_query
...
Phase out execute remote query and command
2017-06-16 11:48:12 +03:00
velioglu
a17ab6408a
Delete ExecuteRemoteCommand function
2017-06-15 17:11:19 +03:00
velioglu
173fe137af
Convert DropShardsFromWorker to the new connection API
2017-06-15 15:24:06 +03:00
velioglu
d7b68e5647
Convert TableDDLCommandList function to the new connection API
2017-06-14 17:29:58 +03:00
velioglu
0aa9572e18
Convert RemoteTableOwner function to the new connection API
2017-06-14 17:29:58 +03:00
velioglu
7fe29aad4c
Convert worker_fetch_foreign_file to new connection API
2017-06-14 17:29:58 +03:00
velioglu
43d2cdbd35
Convert DistributedTableSizeOnWorker function to new connection API
2017-06-14 17:29:58 +03:00
Marco Slot
802ff0db2f
Merge pull request #1435 from citusdata/unlogged_tables
...
Support unlogged tables
2017-06-14 14:42:42 +02:00
Marco Slot
56876596d5
Add support for unlogged distributed tables
2017-06-14 13:50:00 +02:00
Burak Velioglu
296f41dfd0
Merge pull request #1448 from citusdata/fix_drop_shard_connection
...
Use placement connection to drop shards instead of node connection
2017-06-14 14:34:10 +03:00
velioglu
a1ea29ec2b
Use placement connection to drop shards instead of node connection
2017-06-14 14:14:59 +03:00
Marco Slot
d3e0742b8d
Merge pull request #1441 from citusdata/remove_copy_xact_check
...
Allow COPY after a multi-shard command
2017-06-09 14:19:06 +02:00
Marco Slot
70abfd29d2
Allow COPY after a multi-shard command
...
This change removes the XactModificationLevel check at the start of COPY
that was made redundant by consistently using GetPlacementConnection.
2017-06-09 13:54:58 +02:00
Jason Petersen
50501227e9
Add ORDER clause to subquery test missing it
2017-06-08 18:30:14 -06:00
Jason Petersen
cc190a4af9
Remove tracked files from gitignore
...
Causes very hard-to-debug test failures.
2017-06-08 17:39:31 -06:00
Brian Cloutier
38fea7fe66
Add instructions for using citus_indent ( #1434 )
2017-06-05 13:21:47 +03:00
Metin Döşlü
a7c94cb36d
Merge pull request #1431 from jmunsch/jmunsch_errmsg
...
Update to errmsg for mixed location insert into
2017-06-02 10:48:49 +03:00
jmunsch
1647d17a14
Clarify error message for local and distributed query plans.
2017-06-01 11:52:49 -07:00
Jason Petersen
a1e44328b2
Add 6.2.2 CHANGELOG entry
2017-05-31 17:02:41 -06:00
Jason Petersen
eaa9dabad1
Add 6.1.2 CHANGELOG entry
2017-05-31 17:02:24 -06:00
Andres Freund
5d0db7a9dd
Merge pull request #1438 from citusdata/fix_shard_move_lock
...
Don't take a table lock in ForeignConstraintGetReferencedTableId
2017-05-31 15:26:19 -07:00
Marco Slot
f1d804180b
Don't take a table lock in ForeignConstraintGetReferencedTableId
2017-05-31 11:15:21 +02:00
Önder Kalacı
0e3369a863
Merge pull request #1389 from citusdata/improve_subquery_reg_tests
...
Improve subquery pushdown regression tests
2017-05-30 14:18:37 +03:00
Onder Kalaci
df494c0403
Improve subquery pushdown regression tests
...
- Use native postgres function for composite key btree functions
- Move explain tests to multi_explain.sql (get rid of .out _0.out files)
- Get rid of input/output files for multi_subquery.sql by moving table creations
- Update some comments
2017-05-30 14:05:15 +03:00
Jason Petersen
b072708802
Bump CHANGELOG for 6.2.1
2017-05-24 13:30:36 -06:00
Marco Slot
1910a93b9a
Merge pull request #1427 from citusdata/fix_version_checks
...
Fix version checks
2017-05-24 19:04:26 +02:00
Burak Yucesoy
aff6a3dcc4
Add tests for version check
2017-05-24 17:39:25 +03:00
Burak Yucesoy
8c1bbf1417
Register cache invalidation callback before version checks
...
With this commit we start to register InvalidateDistRelationCacheCallback
function as cache invalidation callback function before version checks
because during version checks we use cache to look up relation ids of some
relations like pg_dist_relation or pg_dist_partition_logical_relid_index
and we want to know about cache invalidation before accessing them.
2017-05-24 17:39:25 +03:00
Burak Yucesoy
c7bfa06cb9
Fix incorrect call to CheckInstalledVersion
...
During version update, we indirectly calld CheckInstalledVersion via
ChackCitusVersions. This obviously fails because during version update it is
expected to have version mismatch between installed version and binary version.
Thus, we remove that ChackCitusVersions. We now only call ChackAvailableVersion.
2017-05-24 17:39:25 +03:00
Önder Kalacı
1ea96b626b
Merge pull request #1426 from citusdata/better_comment_for_tests
...
Add comment to subquery regression test file
2017-05-22 11:12:20 +03:00