pass case sensitive table name with double quotes
maveriCkharsha opened this issue · comments
How do I pass the table name which is case sensitive. It says table name doesn't exist tried """public.HealthCredits""", public."HealthCredits",
PGPASSWORD='xxxx' pg_repack -e -h xxxxx -U xxxx -p 5432 -k AllTables -t public.HealthCredits
Like other postgresql tools (try pg_dump -t HealthCredits
for example), you need double quote such a identifiers. One pair of quotes will eat bash itself, another pair is required for quoted identifier.
try this:
-t 'public."HealthCredits"'
Thanks for the quick response. I was able to do like this too public.""\"HealthCredits"\""
But your answer looks clean.
Closing this issue since a solution is achieved.