From 2cb3cfa9f32d3658f198d792fdfbb4223858801c Mon Sep 17 00:00:00 2001 From: Shahidh K Muhammed Date: Thu, 22 Nov 2018 16:13:24 +0530 Subject: [PATCH] update docs for pg_dump --- docs/graphql/manual/migrations/existing-project.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/graphql/manual/migrations/existing-project.rst b/docs/graphql/manual/migrations/existing-project.rst index fc1705742c818..54ceb635839bc 100644 --- a/docs/graphql/manual/migrations/existing-project.rst +++ b/docs/graphql/manual/migrations/existing-project.rst @@ -79,6 +79,12 @@ Step 3: Initialize the migrations as per your current state pg_dump -O -x -h -p -U -d --schema public --schema-only > public-schema.sql + .. note:: + + If the exported file contains ``SELECT pg_catalog.set_config('search_path', '', false);``, remove the whole line. + This can cause issues later when SQL is run without schema qualifiers, since this statement sets search path to ``''`` + instead of the default ``public`` and ``pg_catalog``. + - Export the metadata (this creates a file ``metadata.yaml``): .. code-block:: bash