Data Collector Tables (Are they tables or views)?

Moderator: NorbertKrupa

Post Reply
User avatar
Julie
Master
Master
Posts: 221
Joined: Thu Apr 19, 2012 9:29 pm

Data Collector Tables (Are they tables or views)?

Post by Julie » Mon Oct 06, 2014 5:02 pm

Hi,

Anyone know if the DC_ tables are actual tables, or are they views? If they are views, can we see the code anywhere?

Thanks!
Thanks,
Juliette

NorbertKrupa
GURU
GURU
Posts: 527
Joined: Tue Oct 22, 2013 9:36 pm
Location: Chicago, IL
Contact:

Re: Data Collector Tables (Are they tables or views)?

Post by NorbertKrupa » Mon Oct 06, 2014 8:16 pm

There are no data collector tables which are views. They are physical tables. You can find out which system tables are views with:

Code: Select all

SELECT * FROM v_internal.vs_system_tables WHERE is_view = 't' ORDER BY table_name;
You're then able to pull the corresponding view from vs_system_views. Read my blog post for more info.
Checkout vertica.tips for more Vertica resources.

User avatar
Julie
Master
Master
Posts: 221
Joined: Thu Apr 19, 2012 9:29 pm

Re: Data Collector Tables (Are they tables or views)?

Post by Julie » Tue Oct 07, 2014 1:05 pm

If the DC tables are physical tables, I wonder how Vertica is limiting the result set.

Code: Select all

dbadmin=> select distinct user_name from dc_requests_issued;
 user_name
-----------
 dbadmin
 julie
 tableau
(3 rows)

dbadmin=> \c my_1_node julie
You are now connected to database "my_1_node" as user "julie".
my_1_node=> select distinct user_name from dc_requests_issued;
 user_name
-----------
 julie
(1 row)
Is there something built into the execution engine that limits the records based on a user running the query? Sounds like fine-grained access control in Oracle!
Thanks,
Juliette

NorbertKrupa
GURU
GURU
Posts: 527
Joined: Tue Oct 22, 2013 9:36 pm
Location: Chicago, IL
Contact:

Re: Data Collector Tables (Are they tables or views)?

Post by NorbertKrupa » Tue Oct 07, 2014 2:02 pm

Depending on which collector you're looking at, you'll only have permissions to records that apply to the granted privileges. The physical data is stored in your catalog directory under DataCollector. Additionally, they each have predefined collection policies.
Checkout vertica.tips for more Vertica resources.

Post Reply

Return to “Vertica Database Administration”