wooden-spring-14915
01/23/2024, 8:59 PMfew-parrot-16520
01/23/2024, 9:01 PMbest-answer-87711
01/24/2024, 10:14 PMfew-parrot-16520
01/24/2024, 10:18 PMfew-parrot-16520
01/24/2024, 10:19 PMbest-answer-87711
01/24/2024, 10:53 PMbest-answer-87711
01/25/2024, 2:41 PMfew-parrot-16520
01/25/2024, 2:54 PMfew-parrot-16520
01/25/2024, 2:55 PMfew-parrot-16520
01/25/2024, 2:55 PMcreate view gold.channels as
select
t.channel_id,
t.channel_ref,
t.channel_name,
t.used_for_replay,
rac.replay_ad_channel_name as replay_channel_name,
rac.replay_ad_channel_group as replay_channel_group,
rac.rap_channel_id as rap_channel_id
from
gold.channels_mediapro t
left join gold.replay_ad_channel rac
on t.channel_ref = rac.replay_ad_channel_code
with no schema binding;few-parrot-16520
01/25/2024, 2:55 PMfew-parrot-16520
01/29/2024, 6:00 PMbest-answer-87711
01/30/2024, 3:32 PMfew-parrot-16520
01/30/2024, 5:56 PMfew-parrot-16520
01/30/2024, 6:10 PMcreate view gold.test_view as
select
p.*,
rap.replay_ad_channel_name
from
gold.programs p
left join gold.replay_ad_channel rap
on p.channel_ref = rap.replay_ad_channel_codefew-parrot-16520
01/30/2024, 6:11 PMfew-parrot-16520
01/30/2024, 6:11 PMfew-parrot-16520
01/30/2024, 6:12 PMbest-answer-87711
01/30/2024, 6:20 PMbest-answer-87711
02/05/2024, 2:34 PMfew-parrot-16520
02/05/2024, 3:13 PMfew-parrot-16520
02/05/2024, 3:13 PMfew-parrot-16520
02/05/2024, 3:14 PMbest-answer-87711
02/05/2024, 8:52 PMfew-parrot-16520
02/07/2024, 12:43 PMbest-answer-87711
02/07/2024, 4:00 PMlively-helicopter-98030
02/07/2024, 8:41 PMsecoda_user that has been created.lively-helicopter-98030
02/07/2024, 8:56 PMGRANT USAGE ON SCHEMA <schema_name> TO <user_name>;
GRANT SELECT ON ALL TABLES IN SCHEMA <schema_name> TO <user_name>;few-parrot-16520
02/07/2024, 10:14 PMfew-parrot-16520
02/07/2024, 10:15 PMlively-helicopter-98030
02/07/2024, 10:15 PMsecoda_user is a superuser?few-parrot-16520
02/07/2024, 10:15 PMlively-helicopter-98030
02/07/2024, 10:16 PMfew-parrot-16520
02/07/2024, 10:16 PMfew-parrot-16520
02/07/2024, 10:20 PMGRANT USAGE ON SCHEMA bronze_spectrum TO secoda_user ; --spectrum schema
GRANT SELECT ON ALL tables IN SCHEMA bronze_spectrum TO secoda_user;
GRANT USAGE ON SCHEMA bronze TO secoda_user ;
GRANT SELECT ON ALL tables IN SCHEMA bronze TO secoda_user;
GRANT USAGE ON SCHEMA gold TO secoda_user ;
GRANT SELECT ON ALL tables IN SCHEMA gold TO secoda_user;few-parrot-16520
02/07/2024, 10:27 PMfew-parrot-16520
02/07/2024, 10:27 PMfew-parrot-16520
02/07/2024, 10:27 PMlively-helicopter-98030
02/07/2024, 10:29 PMinformation_schema.view_table_usage, we are not getting back any resultsfew-parrot-16520
02/07/2024, 10:32 PMfew-parrot-16520
02/07/2024, 10:32 PMfew-parrot-16520
02/07/2024, 10:40 PMfew-parrot-16520
02/07/2024, 10:45 PMfew-parrot-16520
02/07/2024, 10:45 PMfew-parrot-16520
02/07/2024, 10:47 PMlively-helicopter-98030
02/07/2024, 10:50 PMinformation_schema.views and information_schema.view_table_usage but for your workspace when querying information_schema.views it does not return the Query Definitionlively-helicopter-98030
02/07/2024, 10:51 PM<http://pg_catalog.pg|pg_catalog.pg>_views to work around this. That is why I was under the impression of it being some privilege issue.
Can you try querying information_schema.view_table_usage does it yield any results at all?few-parrot-16520
02/07/2024, 10:53 PMfew-parrot-16520
02/07/2024, 10:54 PMselect * from information_schema.view_table_usage
where view_schema = 'gold' and view_name = 'channels'few-parrot-16520
02/07/2024, 10:55 PMselect * from information_schema.views
where table_schema = 'gold' and table_name = 'channels'lively-helicopter-98030
02/07/2024, 10:59 PMselect * from information_schema.views
where table_schema = 'gold' and table_name = 'channels'
and see if you are getting a view_definitioin
are you currently logged in as secoda_user in your sql query programfew-parrot-16520
02/07/2024, 11:20 PMfew-parrot-16520
02/07/2024, 11:20 PMfew-parrot-16520
02/07/2024, 11:21 PMfew-parrot-16520
02/07/2024, 11:23 PMfew-parrot-16520
02/07/2024, 11:26 PMlively-helicopter-98030
02/08/2024, 8:41 PMfew-parrot-16520
02/08/2024, 8:52 PMbest-answer-87711
02/08/2024, 9:31 PMfew-parrot-16520
02/09/2024, 8:37 AMbest-answer-87711
02/09/2024, 8:07 PMfew-parrot-16520
02/12/2024, 10:12 AMbest-answer-87711
02/12/2024, 4:52 PMfew-parrot-16520
02/12/2024, 7:31 PMfew-parrot-16520
02/12/2024, 7:31 PMfew-parrot-16520
02/12/2024, 7:31 PMfew-parrot-16520
02/12/2024, 7:32 PMfew-parrot-16520
02/12/2024, 7:32 PMbest-answer-87711
02/12/2024, 7:32 PM