Skip to content

Commit

Permalink
Merge branch 'main' into grant_revoke_db
Browse files Browse the repository at this point in the history
  • Loading branch information
gurkanindibay authored Aug 24, 2023
2 parents 7e5d340 + 553780e commit 19a0927
Show file tree
Hide file tree
Showing 15 changed files with 436 additions and 524 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/packaging-test-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:

workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:

get_postgres_versions_from_file:
Expand Down Expand Up @@ -119,7 +123,6 @@ jobs:
- debian-buster-all
- debian-bookworm-all
- debian-bullseye-all
- ubuntu-bionic-all
- ubuntu-focal-all
- ubuntu-jammy-all
- ubuntu-kinetic-all
Expand Down
16 changes: 4 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ endif

include Makefile.global

all: extension pg_send_cancellation
all: extension


# build columnar only
Expand Down Expand Up @@ -40,22 +40,14 @@ clean-full:

install-downgrades:
$(MAKE) -C src/backend/distributed/ install-downgrades
install-all: install-headers install-pg_send_cancellation
install-all: install-headers
$(MAKE) -C src/backend/columnar/ install-all
$(MAKE) -C src/backend/distributed/ install-all

# build citus_send_cancellation binary
pg_send_cancellation:
$(MAKE) -C src/bin/pg_send_cancellation/ all
install-pg_send_cancellation: pg_send_cancellation
$(MAKE) -C src/bin/pg_send_cancellation/ install
clean-pg_send_cancellation:
$(MAKE) -C src/bin/pg_send_cancellation/ clean
.PHONY: pg_send_cancellation install-pg_send_cancellation clean-pg_send_cancellation

# Add to generic targets
install: install-extension install-headers install-pg_send_cancellation
clean: clean-extension clean-pg_send_cancellation
install: install-extension install-headers
clean: clean-extension

# apply or check style
reindent:
Expand Down
8 changes: 8 additions & 0 deletions src/backend/distributed/commands/statistics.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ PreprocessCreateStatisticsStmt(Node *node, const char *queryString,

EnsureCoordinator();

if (!(stmt->defnames))
{
ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
errmsg("cannot create statistics without a name on a "
"Citus table"),
errhint("Consider specifying a name for the statistics")));
}

QualifyTreeNode((Node *) stmt);

Oid statsOid = get_statistics_object_oid(stmt->defnames, true);
Expand Down
File renamed without changes.
6 changes: 6 additions & 0 deletions src/backend/distributed/planner/multi_explain.c
Original file line number Diff line number Diff line change
Expand Up @@ -992,12 +992,18 @@ BuildRemoteExplainQuery(char *queryString, ExplainState *es)
appendStringInfo(explainQuery,
"EXPLAIN (ANALYZE %s, VERBOSE %s, "
"COSTS %s, BUFFERS %s, WAL %s, "
#if PG_VERSION_NUM >= PG_VERSION_16
"GENERIC_PLAN %s, "
#endif
"TIMING %s, SUMMARY %s, FORMAT %s) %s",
es->analyze ? "TRUE" : "FALSE",
es->verbose ? "TRUE" : "FALSE",
es->costs ? "TRUE" : "FALSE",
es->buffers ? "TRUE" : "FALSE",
es->wal ? "TRUE" : "FALSE",
#if PG_VERSION_NUM >= PG_VERSION_16
es->generic ? "TRUE" : "FALSE",
#endif
es->timing ? "TRUE" : "FALSE",
es->summary ? "TRUE" : "FALSE",
formatStr,
Expand Down
70 changes: 0 additions & 70 deletions src/backend/distributed/test/pg_send_cancellation.c

This file was deleted.

1 change: 0 additions & 1 deletion src/bin/pg_send_cancellation/.gitignore

This file was deleted.

24 changes: 0 additions & 24 deletions src/bin/pg_send_cancellation/Makefile

This file was deleted.

47 changes: 0 additions & 47 deletions src/bin/pg_send_cancellation/README.md

This file was deleted.

Loading

0 comments on commit 19a0927

Please sign in to comment.