redshift drop table with + and spaces in name
-
08-10-2020 - |
Question
I have a table that a user created which appears to be from a python variable that never interpolated.
afsproddb01=# \dt+ *transtable*
List of relations
schema | name | type | owner | description
--------+-----------------+-------+--------+-------------
public | + transtable + | table | usiapp |
(1 row)
I am unable to drop it, I can only describe it with the \dt+ and wildcard method. Can anyone point me in the right direction?
Solution
I was able to answer my own question, a co worker was able to see a space in front of the first plus sign. I was not seeing this, so quoted drop worked.
afsproddb01=#drop table " + transtable +";
DROP TABLE
Licensed under: CC-BY-SA with attribution
Not affiliated with dba.stackexchange