Chech that the database file exists before registering the server
The database option is a required one for a server object
If the foreign table doesn't have the "table" option, take its local name