From 1dcc296ac00134643a1154a004f8a7293e47f250 Mon Sep 17 00:00:00 2001 From: Pavel Date: Sun, 16 May 2021 17:54:22 +0300 Subject: [PATCH] Doc: Tutorial improvements In order to create a foreign table we needs to create a server first. --- doc/implementing-tutorial.rst | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/doc/implementing-tutorial.rst b/doc/implementing-tutorial.rst index efeef895b..6ec0d2745 100644 --- a/doc/implementing-tutorial.rst +++ b/doc/implementing-tutorial.rst @@ -20,14 +20,17 @@ The goal of this tutorial is to be able to execute this: .. code-block:: sql + CREATE SERVER multicorn_srv + FOREIGN DATA WRAPPER multicorn OPTIONS ( + wrapper 'myfdw.ConstantForeignDataWrapper' + ); + CREATE FOREIGN TABLE constanttable ( test character varying, test2 character varying - ) server multicorn_srv options ( - wrapper 'myfdw.ConstantForeignDataWrapper' - ) + ) SERVER multicorn_srv; - SELECT * from constanttable; + SELECT * FROM constanttable; And obtain this as a result: