"Nick Johnson" <pgsql(at)spatula(dot)net> writes:
> Though you can create a database with a period in the name (e.g.,
> "example.com"), you cannot issue a GRANT on that database name from the
> command line.
You need some double quotes:
http://www.postgresql.org/docs/8.1/static/sql-syntax.html#SQL-SYNTAX-IDENTIFIERS
This is by no means unique to GRANT, nor to database names.
regards, tom lane