From e5d0acd714289ce5dbaafcc796e95cdf58c43e12 Mon Sep 17 00:00:00 2001 From: Masato Ikeda Date: Fri, 17 Jul 2020 23:52:22 +0900 Subject: [PATCH] Replace tab with spaces in sample query PostgreSQL raises a syntax error for a tab character in a query. --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 82badd1..43b7b13 100644 --- a/README.md +++ b/README.md @@ -100,16 +100,16 @@ CREATE SERVER mongo_server -- create user mapping CREATE USER MAPPING FOR postgres - SERVER mongo_server - OPTIONS (username 'mongo_user', password 'mongo_pass'); + SERVER mongo_server + OPTIONS (username 'mongo_user', password 'mongo_pass'); -- create foreign table CREATE FOREIGN TABLE warehouse( - _id NAME, + _id NAME, warehouse_id int, warehouse_name text, warehouse_created timestamptz) -SERVER mongo_server + SERVER mongo_server OPTIONS (database 'db', collection 'warehouse'); -- Note: first column of the table must be "_id" of type "NAME".