Frage

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?

War es hilfreich?

Lösung

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
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit dba.stackexchange
scroll top