Skip to content

Commit

Permalink
Adds logs for test
Browse files Browse the repository at this point in the history
  • Loading branch information
gurkanindibay committed Nov 15, 2023
1 parent a685873 commit bb2b7ae
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/backend/distributed/commands/database.c
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,7 @@ GenerateGrantDatabaseCommandList(void)
{
continue;
}
elog(NOTICE, "Granting on database %s", NameStr(databaseForm->datname));

List *dbGrants = GrantOnDatabaseDDLCommands(databaseForm->oid);

Expand Down
7 changes: 7 additions & 0 deletions src/test/regress/sql/multi_metadata_sync.sql
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,15 @@ ALTER ROLE CURRENT_USER WITH PASSWORD 'dummypassword';

-- Show that, with no MX tables, activate node snapshot contains only the delete commands,
-- pg_dist_node entries, pg_dist_object entries and roles.

select pdo.*, pd.datname
from pg_dist_object pdo
left outer join pg_database pd on pdo.objid = pd.oid;

SELECT unnest(activate_node_snapshot()) order by 1;



-- Create a test table with constraints and SERIAL and default from user defined sequence
CREATE SEQUENCE user_defined_seq;
CREATE TABLE mx_test_table (col_1 int UNIQUE, col_2 text NOT NULL, col_3 BIGSERIAL, col_4 BIGINT DEFAULT nextval('user_defined_seq'));
Expand Down

0 comments on commit bb2b7ae

Please sign in to comment.