Skip to content

Commit

Permalink
Merge branch 'release-1.2.1' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmp85 committed Jul 30, 2015
2 parents 4fcaa74 + 8674d0a commit 5ed207c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### pg_shard v1.2.1 (July 30, 2015) ###

* Fixes update script bug triggered when running in CitusDB

### pg_shard v1.2.0 (July 28, 2015) ###

* Distribution metadata stays continually in sync with CitusDB
Expand Down
4 changes: 2 additions & 2 deletions META.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "pg_shard",
"abstract": "Easy sharding for PostgreSQL",
"description": "Shards and replicates PostgreSQL tables for horizontal scale and high availability. Seamlessly distributes SQL statements, without requiring any application changes.",
"version": "1.2.0",
"version": "1.2.1",
"maintainer": "\"Jason Petersen\" <jason@citusdata.com>",
"license": "lgpl_3_0",
"prereqs": {
Expand All @@ -17,7 +17,7 @@
"abstract": "Easy sharding for PostgreSQL",
"file": "sql/pg_shard--1.2.sql",
"docfile": "README.md",
"version": "1.2.0"
"version": "1.2.1"
}
},
"release_status": "stable",
Expand Down
4 changes: 2 additions & 2 deletions updates/pg_shard--1.1--1.2.sql
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ LANGUAGE C STABLE STRICT;
DO $$
DECLARE
use_citus_metadata boolean := false;
relation_name oid;
relation_name text;
BEGIN
BEGIN
PERFORM 'pg_catalog.pg_dist_partition'::regclass;
Expand All @@ -27,7 +27,7 @@ BEGIN
LOCK TABLE pgs_distribution_metadata.partition IN EXCLUSIVE MODE;
FOR relation_name IN SELECT relation_id::regclass::text
FROM pgs_distribution_metadata.partition LOOP
PERFORM sync_table_metadata_to_citus(relation_id::regclass);
PERFORM sync_table_metadata_to_citus(relation_name);
END LOOP;

-- clean up dependencies on configuration objects
Expand Down

0 comments on commit 5ed207c

Please sign in to comment.