ERROR 4568: Relation projection_name does not exist
* First, I create a projection:
create projection scheme.projection_name (
cp1,
cp2,
cp3,
cp4
) as
select
a.c1,
a.c2,
b.d1,
b.d2,
from scheme.t1 as a join scheme.t2 as b
on a.c3=b.d1
and a.c4=b.d2
ksafe 1;
* The next step, I execute:
select refresh();
refresh -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Refresh completed with the following outcomes:
Projection Name: [Anchor Table] [Status] [Refresh Method] [Error Count] [Duration (sec)]
----------------------------------------------------------------------------------------
"scheme"."projection_name_node0002": [t1] [refreshed] [scratch] [0] [1]
"scheme"."projection_name_node0003": [t1] [refreshed] [scratch] [0] [1]
"scheme"."projection_name_node0001": [t1] [refreshed] [scratch] [0] [1]
(1 row)
* And finally, when I try to do a query about this projection, get the error:
ABTLC=> select * from scheme.projection_name;ERROR 4568: Relation "scheme.projection_name" does not exist
ABTLC=>
* But, if I put de projection_name with the node, then, I get the result:
ABTLC=> select * from scheme.projection_name_node0001;
cp1 | cp2 | cp3 | cp4 |
-------+---------------+--------------+------------------
10 | desc dato dos | 1 | uno
10 | desc dato uno | 1 | uno
(2 rows)
* How can I do the query with the projection_name (without the node)?
create projection scheme.projection_name (
cp1,
cp2,
cp3,
cp4
) as
select
a.c1,
a.c2,
b.d1,
b.d2,
from scheme.t1 as a join scheme.t2 as b
on a.c3=b.d1
and a.c4=b.d2
ksafe 1;
* The next step, I execute:
select refresh();
refresh -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Refresh completed with the following outcomes:
Projection Name: [Anchor Table] [Status] [Refresh Method] [Error Count] [Duration (sec)]
----------------------------------------------------------------------------------------
"scheme"."projection_name_node0002": [t1] [refreshed] [scratch] [0] [1]
"scheme"."projection_name_node0003": [t1] [refreshed] [scratch] [0] [1]
"scheme"."projection_name_node0001": [t1] [refreshed] [scratch] [0] [1]
(1 row)
* And finally, when I try to do a query about this projection, get the error:
ABTLC=> select * from scheme.projection_name;ERROR 4568: Relation "scheme.projection_name" does not exist
ABTLC=>
* But, if I put de projection_name with the node, then, I get the result:
ABTLC=> select * from scheme.projection_name_node0001;
cp1 | cp2 | cp3 | cp4 |
-------+---------------+--------------+------------------
10 | desc dato dos | 1 | uno
10 | desc dato uno | 1 | uno
(2 rows)
* How can I do the query with the projection_name (without the node)?
Sign up
Already have an account? Login
Welcome to the Rocket Forum!
Please log in or register:
Employee Login | Registration Member Login | RegistrationEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.