Mark a table in rowsecurity test case to be replicated
authorPavan Deolasee <[email protected]>
Mon, 22 Jun 2015 10:09:24 +0000 (15:39 +0530)
committerPavan Deolasee <[email protected]>
Mon, 22 Jun 2015 10:09:24 +0000 (15:39 +0530)
The table is referenced by another table on a non-distribution key. So mark the
table as replicated

src/test/regress/sql/rowsecurity.sql

index fdadf99fd62167b2774b2f848761842da57fa9d8..55fa7b8bf8c91d5fb21f39d5b390caeb90377af9 100644 (file)
@@ -53,10 +53,14 @@ INSERT INTO uaccount VALUES
     ('rls_regress_user2', 2),
     ('rls_regress_user3', 3);
 
+-- PGXL
+--   Distribute by replication so that "document" table below can reference "cid"
+--   column
+--
 CREATE TABLE category (
     cid        int primary key,
     cname      text
-);
+) DISTRIBUTE BY REPLICATION;
 GRANT ALL ON category TO public;
 INSERT INTO category VALUES
     (11, 'novel'),