Is it possible to restrict user access to a postgresql database by specifying a database, rather than a table?

I understand that the line:

```
GRANT ALL ON tableName TO joeuser

```

enables this user to access this table and do anything they want. However I want to allow a user access to the database `databaseName` that contains `tableName` (and all tables within `databaseName`), but not all databases on my postgresql server.