Closed pantonis closed 6 months ago
I believe this function was updated to be case sensitive, so you should be able to do:
SELECT columnar.alter_table_set_access_method('dw.AccountSummaryFact', 'columnar');
the referenced fix is in 1.1.2, see #237.
Yes I have checked the code as well. and saw that change. But still doesnt work even with your suggestion above
SELECT columnar.alter_table_set_access_method('dw.AccountSummaryFact', 'columnar');
Table dw.accountsummaryfact does not exist.
can you show me the output from
select * from pg_available_extensions where name = 'columnar';
columnar 11.1-11 11.1-11 Hydra Columnar extension
Confirmed against ghcr.io/hydradatabase/hydra:latest
as follows:
create schema "FooBar";
create table "FooBar"."BazQux" (i1 integer) using heap;
select columnar.alter_table_set_access_method('FooBar.BazQux', 'columnar');
CREATE SCHEMA
CREATE TABLE
WARNING: Table foobar.bazqux does not exist.
alter_table_set_access_method
-------------------------------
f
(1 row)
Additionally if you quote everything:
select columnar.alter_table_set_access_method('"FooBar"."BazQux"', 'columnar');
ERROR: table "BazQux" does not exist
CONTEXT: SQL statement "DROP TABLE "BazQux""
PL/pgSQL function columnar.alter_table_set_access_method(text,text) line 128 at EXECUTE
what is the release date for 11.1-12?
Just to comment for future references. When schema and/or table should be case sensitive function argument should be provided like:
select columnar.alter_table_set_access_method('"FooBar"."BazQux"', 'columnar');
This is what we expected actually but it didnt work. Can you please provide an estimate for release?
@wuputah Can you give estimate ?
Unless you're running on Hydra Cloud, there is no need to wait for a release. You can copy-paste the updated function to your own instance to apply the fix. This won't break future upgrades, as when the update is applied later, it will just replace it again, which will have no effect.
If you need this fix on your instance of Hydra Cloud, please contact support.
What's wrong?
when we run this
SELECT columnar.alter_table_set_access_method('dw."AccountSummaryFact"', 'columnar');
we can see that table is not converted to columnar