[MASSMAIL]How to reference a DB with a period in its name ? - Mailing list pgsql-general

From David Gauthier
Subject [MASSMAIL]How to reference a DB with a period in its name ?
Date
Msg-id CAEs=6DniFeqNT6RHCcPiiFFWzTGzQKMKboNch72Ftadr_W-Cdw@mail.gmail.com
Whole thread Raw
Responses Re: How to reference a DB with a period in its name ?  ("David G. Johnston" <david.g.johnston@gmail.com>)
Re: How to reference a DB with a period in its name ?  (Christophe Pettus <xof@thebuild.com>)
Re: How to reference a DB with a period in its name ?  (negora <public@negora.com>)
Re: How to reference a DB with a period in its name ?  (Jan Wieck <jan@wi3ck.info>)
List pgsql-general
Hi:

I have a DB named "thedb", which has a schema called "theschem" which has a table called "thetab".  In a perl/DBI script, I am able to work with the table by referencing it as... "thedb.theschem.thetab" as in... "delete from thedb.theschem.thetab where col1=1"

No problem (so far...)

New DB now has a name "thedb.v1" (notice the "."), the schem and table are the same as above.  But now I'm getting a syntax error presumably because of that "." introduced in the DB name.

I tried encapsulating the DB name in double quotes (no good), single quotes (still no good) escaping with '\' (no good), escaping with ".." (no good). 

Is there a way I can reference the DB which has the "." in it's name ?

v11.5 on linux (I know, way past time to upgrade)

Thanks in Advance !

pgsql-general by date:

Previous
From: Alexander Farber
Date:
Subject: [MASSMAIL] Please recommend postgresql.conf improvements for osm2pgsql loading Europe
Next
From: "David G. Johnston"
Date:
Subject: Re: How to reference a DB with a period in its name ?