2

I would also like to delete a table in PostgreSQL.

I can delete the table I just opened, but when I want to delete a previously opened table I get the following error:

DROP TABLE "ABTestCreateTable4";

DROP TABLE "ABTestCreateTable4"

ERROR: vsnprintf failed: Invalid argument

DROP TABLE "ABTestCreateTable4" CASCADE;

DROP TABLE "ABTestCreateTable4" CASCADE

ERROR: vsnprintf failed: Invalid argument

I tried two options but I got the same error.

I've searched for this problem, but I can't find any solution.

I'm using Navicat Premium.

Thanks for your help.

7
  • looks strange. I cannot to repeat it on current versions of PostgreSQL. Please, try update your Postgres. Commented Nov 13, 2018 at 9:03
  • That is valid SQL. The error message looks strange though. Maybe Navicat can't cope with those dreaded quoted identifiers. Commented Nov 13, 2018 at 9:09
  • Is this error an error with Navicat? Commented Nov 13, 2018 at 9:14
  • What happens when you drop the table using the psql client? Commented Nov 13, 2018 at 9:22
  • I'm trying, hopefully it works. Commented Nov 13, 2018 at 10:05

1 Answer 1

2

Try doing this:

SET lc_messages = 'C'

and then DROP TABLE table_name

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks for your solution. Why did this happen? Do you have any information?
you can have a look at this link for details: postgresql.org/message-id/2510.1542487896%40sss.pgh.pa.us

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.