Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c1kjI-0003Fd-KO for pgsql-bugs@arkaria.postgresql.org; Wed, 02 Nov 2016 01:52:40 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1c1kjI-00089R-71 for pgsql-bugs@arkaria.postgresql.org; Wed, 02 Nov 2016 01:52:40 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c1kOY-0006Yd-3l for pgsql-bugs@postgresql.org; Wed, 02 Nov 2016 01:31:14 +0000 Received: from mail-pf0-x22d.google.com ([2607:f8b0:400e:c00::22d]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1c1kOV-0007UO-5P for pgsql-bugs@postgresql.org; Wed, 02 Nov 2016 01:31:12 +0000 Received: by mail-pf0-x22d.google.com with SMTP id n85so1134652pfi.1 for ; Tue, 01 Nov 2016 18:31:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=ik3UpRatnCb+axu2DPOk0PJ7u/oUgI0dLjn9E9Ca/8I=; b=YJ/ndmLeHRtEWo3F3c74JTk0MmJ54aqbP3PtKVjEaFw30uACXrMZwt5dwVQIQsjRTh h3hC/2fLLQqWV7q7NyYCUD7VOCDzlrwkX+IzCHWMhcsAgYeLsu1WXJyBwjTL3NvvPvi6 Z6D59vteWNRRZGBz/uUDdcle6g7kniJMwHqRJozB/AgtMz+Wq8OjONL7AjoN80RxsQRH WrTdePVgWgOeyOiOmQXCN9N62CRhUYn5DD0kRGSAN4o8VdXgQ4D6qoZiHLBtFxzi7RtY 25JLrW7W/kWBlstNTmrp0lLDkDkMfDR9n52IVbhTs7LdAqnKXPfMBN1NSFEaamMg5NAj Mo7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=ik3UpRatnCb+axu2DPOk0PJ7u/oUgI0dLjn9E9Ca/8I=; b=BdT1ORJ67TEAZBJx6rTUjm5ISstuMP+ngRUlwEmvjqDzs2nJ/5BGL3A+s/ewb7uwDk i7Zsh9LYXglpYb3VkOb7+IDJepip3jaISJaj2ClXkZHGxHgt+LaSXMj9EIf2Ipor2Apf 7h5Gn3UpoaMwR3q258FebZBu2nh1wBDpXcu8UAoFeRgALXB9r9nhhn6xbyBCXu+Nxjm2 6ET3cKZlWSB4YcGMyWtjCDSIgXlWKz7lAPDxh7J2J5MaXwyTuJ6f8UsDQ+0EJkOuvdJn qCX6zj8Rh08eTv3kZjBLh0uYTeQCWgm9BpqhxY9fEXivKqXcD7RvSLcqVgZdUbuBOGuQ veIg== X-Gm-Message-State: ABUngvdWEvZo0fhGvvhD6ofVcMGRMPQX6vo8O+qgjXHn/rCFm2O7HiQJqmhwJIIJegCo2Q== X-Received: by 10.98.70.29 with SMTP id t29mr1884448pfa.185.1478050270101; Tue, 01 Nov 2016 18:31:10 -0700 (PDT) Received: from [100.111.65.232] (27.sub-70-197-7.myvzw.com. [70.197.7.27]) by smtp.gmail.com with ESMTPSA id rx1sm21239606pab.32.2016.11.01.18.31.08 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 01 Nov 2016 18:31:08 -0700 (PDT) Content-Type: multipart/alternative; boundary=Apple-Mail-4FE34072-98B3-4149-A84C-BAC638382760 Mime-Version: 1.0 (1.0) Subject: Re: BUG #14408: Schema not found error when 2 or more indices declared on temporary table From: Victor Colborn X-Mailer: iPhone Mail (13G36) In-Reply-To: Date: Tue, 1 Nov 2016 18:31:06 -0700 Cc: "pgsql-bugs@postgresql.org" Content-Transfer-Encoding: 7bit Message-Id: References: <20161101192655.15987.25903@wrigleys.postgresql.org> To: "David G. Johnston" X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org --Apple-Mail-4FE34072-98B3-4149-A84C-BAC638382760 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Good suggestion David. Tried that to no resolve. I am getting a successful f= irst execution, but something is improper on subsequent executions.=20 > On Nov 1, 2016, at 5:00 PM, David G. Johnston = wrote: >=20 >> On Tue, Nov 1, 2016 at 12:26 PM, wrote: >=20 >> The following bug has been logged on the website: >>=20 >> Bug reference: 14408 >> Logged by: Victor Colborn >> Email address: vcolborn@gmail.com >> PostgreSQL version: 9.6.1 >> Operating system: (Red Hat 4.4.7-16), 64-bit >> Description: >>=20 >> I'm finding that this rather simple postgresql 9.6.1 function >> =E2=80=8B[...] >>=20 >> is resulting in a schema "" does not exist error. The exact error is: >>=20 >> =E2=80=8B[...] >>=20 >> and occurs reliably on the second and subsequent executions. Cut/Pasting t= he >> above SQL chunk reproduces the error...for me. Quite interested if that's= >> not the case elsewhere. I have the following clues: > =E2=80=8B[...]=E2=80=8B=20 >> It indicates the name of the not found schema to be "" or "0MA{Start of >> Text} " or some similar variant with non-visible character values. >=20 > =E2=80=8BMy gut reaction here is to type, by hand, the CREATE FUNCTION cod= e into a newly created text file and send it through psql. Your comment abo= ut copy/paste and "non-visible characters" leads me to suspect that whatever= source you are copying from has been "poisoned" by a control character=E2=80= =8B that you can't see and that is causing a problem. >=20 > David J. >=20 >=20 --Apple-Mail-4FE34072-98B3-4149-A84C-BAC638382760 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Good suggestion David. Trie= d that to no resolve. I am getting a successful first execution, but somethi= ng is improper on subsequent executions. 

On Nov 1, 2016,= at 5:00 PM, David G. Johnston <david.g.johnston@gmail.com> wrote:

On Tue, Nov 1, 2016 at 12:26 PM, <vcolborn@gmail.com> wrote:
The following bug has been logged= on the website:

Bug reference:      14408
Logged by:          Victor Colborn
Email address:      vco= lborn@gmail.com
PostgreSQL version: 9.6.1
Operating system:   (Red Hat 4.4.7-16), 64-bit
Description:

I'm finding that this rather simple postgresql 9.6.1 function
=E2=80=8B[...]


is resulting in a schema "" does not exist error. The exact error is:

=E2=80=8B[...]


and occurs reliably on the second and subsequent executions. Cut/Pasting the=
above SQL chunk reproduces the error...for me. Quite interested if that's not the case elsewhere. I have the following clues:

=E2=80=8B[...]=E2=80=8B
 
It indicates the name of the not found schema to be "" or "0MA{Start of
Text} " or some similar variant with non-visible character values.

=E2=80=8BMy gut reaction here is to type, by ha= nd, the CREATE FUNCTION code into a newly created text file and send it thro= ugh psql.  Your comment about copy/paste and "non-visible characters" l= eads me to suspect that whatever source you are copying from has been "poiso= ned" by a control character=E2=80=8B that you can't see and that is causing a= problem.

David J.


= --Apple-Mail-4FE34072-98B3-4149-A84C-BAC638382760--