Skip to content

Partitioning of the tables having case-sensitive names #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Crtex opened this issue Apr 27, 2016 · 4 comments
Closed

Partitioning of the tables having case-sensitive names #13

Crtex opened this issue Apr 27, 2016 · 4 comments
Labels

Comments

@Crtex
Copy link

Crtex commented Apr 27, 2016

Проблема с партицией таблицы с названием Info.

При выполнении запроса:
SELECT create_range_partitions('Info', 'date', '1451606400000'::bigint, '2419200000'::bigint)
получаю 7 ERROR: relation "info" does not exist.

При выполнении запроса:
SELECT create_range_partitions("Info", 'date', '1451606400000'::bigint, '2419200000'::bigint);
получаю 7 ERROR: column "Info" does not exist.

@thomasboussekey
Copy link

Hello,

If you create your table Info with the following script:

CREATE TABLE Info (...)

The exact table name will be the lowercase of the table name that you input.
because it was not written between double quotes.

So the following statement might work:

SELECT create_range_partitions('info', 'date', '1451606400000'::bigint, '2419200000'::bigint);

Hope this helps,
Thomas

@Crtex
Copy link
Author

Crtex commented Apr 28, 2016

Hello, thanks for your answer!
Yeah, I understand that, but I already created my table using double quotes, as you said and it has capital "I" in the beginning.
Is there any way to make extension work without renaming table to lowercase?

Best regards,
Eugene.

@zilder
Copy link
Collaborator

zilder commented Apr 28, 2016

Hi Eugene,
you are right, pathman functions are not designed to accept case-sensitive (double quoted) tables names and attributes. I'm working on it and will provide an update shortly (at least for table names).

Thank you for your report!

@zilder
Copy link
Collaborator

zilder commented Apr 29, 2016

I've updated PL functions so that they can accept case-sensitive table names. Now you can write something like:

SELECT create_range_partitions('"Info"', ...);

I'll deal with case-sensitive attributes a little later.

@zilder zilder changed the title Партиция таблиц с заглавными буквами в названии Partitioning of the tables having case-sensitive names Apr 29, 2016
@funbringer funbringer added the bug label Jun 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants