You cannot create table with empty name:
tgr=# create table "" ();
ERROR: zero-length delimited identifier at or near """"
LINE 1: create table "" ();
However you can create a table with a lot of spaces, including newlines:
create table "
" ();
To work with such table:
- Find it in
information_schema.tables
- Copy/paste table name in some command in double quotes ("")
When the previous fails, you can try to update pg_class
directly. If you have table OID, try this:
update pg_class set relname = 'test'::name where oid = <<YourOID>>;