Commit Graph

125 Commits (c19af52f9ca026343f0dd00d8524a0e1be1d8a57)

Author SHA1 Message Date
Murat Tuncer c19af52f9c Merge pull request #410 from citusdata/350-error-during-duplicate-index-creation
Error out earlier when creating an index with a name collision.
2016-04-19 07:26:31 +03:00
Brian Cloutier 301ffd64f2 Better error on "CREATE INDEX already_exists ..."
Previously (if you're creating the index with the same name on different
tables) we successfully ran the command on the workers before failing it
on the master and leaving no record of the index.

Now we check whether the index exists on the master before sending
commands to the workers.

--

Also make the error better when user attampts to create an index without
a name. Previously those statements returned:

brian=# create index on c (b);
WARNING:  could not receive query results from localhost:9700
DETAIL:  Client error: cannot extend name for null index name
ERROR:  could not execute DDL command on worker node shards

They now return

brian=# create index on c (b);
ERROR:  creating index without a name on a distributed table is
currently unsupported
2016-04-18 13:33:53 -07:00
Jason Petersen 6f7b0facdb Merge pull request #423 from citusdata/422-incorrect-node-port-type
Treat nodePort as the 64bit integer it is.

cr: @anarazel
2016-04-15 12:42:11 -06:00
Jason Petersen dbf4351de2 Merge branch 'master' into 422-incorrect-node-port-type 2016-04-15 12:30:50 -06:00
Jason Petersen c73511768e Merge pull request #451 from citusdata/fix_int64const_use
Fix use of INT64CONST macro

cr: @anarazel
2016-04-15 12:30:24 -06:00
Brian Cloutier 356f6f6cd7 Treat nodePort as the 64bit integer it is 2016-04-15 11:29:36 -07:00
Jason Petersen d109c7cc1a Fix use of INT64CONST macro
This macro is intended to receive a bare integer literal (no suffix).
It adds a suffix as necessary, depending upon available features. On
e.g. 32-bit platforms, the existing code failed to compile because a
suffix was added to the existing suffix. This fixes that problem.
2016-04-15 12:13:56 -06:00
Andres Freund 4c26c39941 Merge pull request #449 from citusdata/freebsd-fixes
Freebsd fixes #2 

Fixes #407 #411
2016-04-15 09:56:11 -07:00
Matthew Seaman 17ba0de333 Regularize include paths for some postgresql headers.
Addresses #411
2016-04-15 09:37:22 -07:00
Matthew Seaman 08752ecf41 Include appropriate headers for htons() and htonl(). 2016-04-15 09:37:08 -07:00
Matthew Seaman e47778d4df Add sys/stat.h include to files using S_IRUSR and S_IWUSR macros. 2016-04-15 09:34:22 -07:00
Ahmet Eren Basak da350dd656 Merge pull request #436 from citusdata/clarify_shared_preload_libraries_message
Clarify Error Message Related to shared_preload_libraries
2016-04-13 14:14:53 +03:00
eren e98c35bb8a Clarify Error Message Related to shared_preload_libraries
Fixes #363

This change modifies the error message given when Citus is attempted
to be loaded other than shared_preload_libraries. Explanations have been
extended with that shared_preload_parameters parameter is in
postgresql.conf and citus should be at the beginning.
2016-04-13 12:12:21 +03:00
Ahmet Eren Basak 38d5ac2f9c Merge pull request #432 from citusdata/bugfix/#374-select-without-target-crash
Fix SELECT problem with no target list
2016-04-13 11:43:20 +03:00
eren 662f13a4d4 Fix SELECT problem with no target list
Prior to this change, performing a SELECT query without a target
list caused backend to crash.

Sample Query: SELECT FROM github_events; (without any * before FROM)

PostgreSQL:
```
--
(39599 rows)
```
Citus:
```
server closed the connection unexpectedly
    This probably means the server terminated abnormally
    before or while processing the request.
The connection to the server was lost. Attempting reset: Failed.
!>
```

The problem was an unnecessary Assert on column list in
SetRangeTblExtraData(citus_nodefuncs.c)
2016-04-13 11:08:14 +03:00
Marco Slot 13d7f1994b Merge pull request #416 from citusdata/feature/copy-for-hash-partitioning
Add COPY support for hash- and range-partitioned tables
2016-04-12 20:44:06 +02:00
Metin Doslu ce0721fdf8 Send COPY rows in binary format 2016-04-12 20:22:31 +02:00
Marco Slot 690252b222 Support for COPY FROM, based on pg_shard PR by Postres Pro 2016-04-12 20:22:31 +02:00
Joe Nelson 754e16b737 Merge pull request #433 from citusdata/readable-contact
List contact options more clearly
2016-04-07 15:32:00 -07:00
Joe Nelson 11cecee9b3 Adjusted badges 2016-04-07 14:04:19 -07:00
Joe Nelson b2a9b3957f Add another link to the mailing list earlier in the page 2016-04-06 15:32:07 -07:00
Joe Nelson 96826efee2 List contact options more clearly 2016-04-05 12:01:58 -07:00
Joe Nelson a83c7dd31d Merge pull request #421 from citusdata/ocd-identation
Proper indentation for code blocks in lists
2016-03-30 15:52:34 -07:00
Joe Nelson 029adfb0f6 Proper indentation for code blocks in lists 2016-03-30 15:40:53 -07:00
Joe Nelson 37c057b734 Merge pull request #420 from citusdata/readme-mailinglist
Add link to our mailing list
2016-03-30 14:20:21 -07:00
Joe Nelson 193f2d5120 Add link to our mailing list 2016-03-30 14:13:59 -07:00
Joe Nelson 1150c0a98e Merge pull request #404 from citusdata/linux-build-howto
Linux build howto
2016-03-30 13:41:34 -07:00
Joe Nelson 6524b2645e Linux build instructions 2016-03-30 13:10:41 -07:00
Önder Kalacı 8150e9b3c8 Merge pull request #388 from citusdata/bugfix/unsupport_clause
Allow all types of nodes in the WHERE clauses
2016-03-30 16:48:01 +03:00
Onder Kalaci 2eabf3fcfa Allow all types of nodes in the WHERE clauses
This change removes the whitelisting check on the WHERE clauses. Note that, before
this change, citus was already allowing all types of nodes with the following
format (i.e., wrap with a boolean test):

  * SELECT col FROM table WHERE (ANY EXPRESSION) is TRUE;

Thus, this change is mostly useful for allowing the expressions in the WHERE clause
directly and avoiding "unsupport clause type" errors.
2016-03-30 16:39:58 +03:00
Murat Tuncer f8838a059a Merge pull request #402 from citusdata/bugfix/#313-UDF-on-repartitioned-subqueries
Make UDFs Work with Repartitioned Subqueries
2016-03-30 15:45:20 +03:00
eren a4750e2e61 Fixes issue #313
Prior to this change, it was not possible to use UDFs in repartitioned
subqueries. The reason is that we were setting the search path explicitly
and omiting public schema from that path.

This change adds the public schema to the explicitly set search path.
2016-03-30 15:39:12 +03:00
Ahmet Eren Basak 5f66649000 Merge pull request #392 from citusdata/bugfix/#258-spurious-notice-message-with-any
Fix spurious NOTICE messages with ANY/ALL
2016-03-25 14:42:13 +02:00
eren 3a9a01557f Fix spurious NOTICE messages with ANY/ALL
Fixes issue #258

Prior to this change, Citus gives a deceptive NOTICE message when a query
including ANY or ALL on a non-partition column is issued on a hash
partitioned table.

Let the github_events table be hash-distributed on repo_id column. Then,
issuing this query:
    SELECT count(*) FROM github_events WHERE event_id = ANY ('{1,2,3}')

Gives this message:
    NOTICE: cannot use shard pruning with ANY (array expression)
    HINT: Consider rewriting the expression with OR clauses.

Note that since event_id is not the partition column, shard pruning would
not be applied in any case. However, the NOTICE message would be valid
and be given if the ANY clause would have been applied on repo_id column.

Reviewer: Murat Tuncer
2016-03-25 14:30:02 +02:00
Metin Döşlü 0667b426ce Update Travis links 2016-03-24 23:24:09 -07:00
Murat Tuncer b278f302e3 Merge pull request #385 from citusdata/feature/unique_index
Allow users to create unique indexes
2016-03-24 09:43:04 +02:00
Murat Tuncer 3f27c627ad Allow users to create unique indexes
Users can now create unique indexes on partition columns
for hash and range distributed tables.
2016-03-24 09:31:06 +02:00
Joe Nelson e2452f6085 Remove redundant information 2016-03-23 17:33:12 -07:00
Jason Petersen 388968c761 Merge latest 5.0 release fixes 2016-03-23 17:43:34 -06:00
Joe Nelson 4ab2847f3b Merge pull request #400 from citusdata/contributing-cla
Add CLA link to contributing.md
2016-03-23 16:36:42 -07:00
Jason Petersen ade2d5bd77 Fix strlcpy off-by-one error
WORKER_LENGTH + 1 is too large. Fixing this has no impact on the string
that is ultimately copied, as it's impossible for the source string to
be any larger to begin with.
2016-03-23 17:34:34 -06:00
Joe Nelson c13fc9583f Add CLA link to contributing.md 2016-03-23 16:29:33 -07:00
Jason Petersen 5f5ad55f0e Add CHANGELOG 2016-03-23 17:28:16 -06:00
Jason Petersen 86d126d1aa Merge pull request #386 from citusdata/add_license
Add or update license/copyright information

cr: @sumedhpathak @begriffs
2016-03-23 17:23:04 -06:00
Jason Petersen 9662e92b49 Remove libpng caveat
I'm not sure this description was 100% accurate; users can open issues
if they continue to have linkage problems.
2016-03-23 17:20:35 -06:00
Jason Petersen a0bcd57e84 Add LICENSE information to README
Integrating this into the new file.
2016-03-23 17:17:43 -06:00
Jason Petersen a95c9da472 Update copyright dates
Fixed configure variable and updated all end dates to 2016.
2016-03-23 17:14:37 -06:00
Jason Petersen c82dbd64fd Add AGPL-3.0 in LICENSE file
Adding our license.
2016-03-23 17:04:58 -06:00
Joe Nelson d3a7c49a09 Merge pull request #398 from citusdata/readme-polish
Improve readme
2016-03-23 15:59:54 -07:00
Joe Nelson 2225da30e9 Note libpng brew mac problem 2016-03-23 15:57:02 -07:00