Hi,
I think there is another bug in foreign server script:
pgAdmin generates script like this one:
-- Server: "kpi@localhost"
-- DROP SERVER "kpi@localhost";
CREATE SERVER kpi@localhost
FOREIGN DATA WRAPPER "myWrapper"
OPTIONS (host 'localhost',dbname 'kpi',port '5432');
ALTER SERVER kpi@localhost
OWNER TO postgres;
but should use server name quotation eg.
ALTER SERVER "kpi@localhost"
Regards,
Bartek