Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gMZxO-00072u-Ua for pgsql-general@arkaria.postgresql.org; Tue, 13 Nov 2018 14:46:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gMZxM-0002MF-2o for pgsql-general@arkaria.postgresql.org; Tue, 13 Nov 2018 14:46:20 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gMZxL-0002M0-R9 for pgsql-general@lists.postgresql.org; Tue, 13 Nov 2018 14:46:19 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gMZxE-0006nZ-Hq for pgsql-general@postgresql.org; Tue, 13 Nov 2018 14:46:19 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id C626521D23; Tue, 13 Nov 2018 09:46:10 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 13 Nov 2018 09:46:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=r MsY9YNRe1AWeU7SF/L38YQW7dRrAkUDwumbLO2bN2k=; b=UABlGI5Nz9/k986Ge 36jmmFJBlvN6Vyzk5G0Li5YkLpNnWqNcyRtzhkqLlb4Jt3HpRMzUpXnky5c1X4Wf oQNK5Zclin8k+FUyTMxRil0HF+qjJLjx+SWOja+ZtKuWIeHvYKVsK3rUhCwHC3VP /ODopUUWWhh2aMnB1eEK6Owi2N0bJHMM0kisqA6Jk8323zmdKfQdT/RU7Le28F4J G4mFMXjAX2EoucOxPugcgFGP+GPEjpNASQH5bnGZZtS2J9hgLF8rRhH0n7g/hGPf CAh8IUIIiQxDWhIoiT6sCj9sBDPKLU3kAtkcg/iZ42toawGeKPIN8fCJn4Dw9V29 y8CPQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=rMsY9YNRe1AWeU7SF/L38YQW7dRrAkUDwumbLO2bN 2k=; b=fCZTJeMbhUDKjg6fr+tK806Ecy+hCQbhZxeECnwT9DqOsujfX/bLSE7Ow ouIhBwvGFMquTsvMzLnZWGFUA9VIMR3N+ZB8EZhNdmOlVWr48HxF7ZorMjJ5s08u iIipLOt0GXEy2PE+DZWYYaznSGrTyJILbDQl89+8TSXbw9amzzu5JYtAyGY2PJQ+ W9uaqDN9H+9U+9mdKxdZEv5BgI3s0Sd6X/sOTzJYw2A7Obx9Xc0PMPCA5+s7YJGR iwUWsGAKgahMq2UhU1CAZIMA/zQj5Rn8B6WfMMwmVl6BIwUz3DcxtY+VFga4vlMH l3FZ418a6WvDVmkUkdVeexgSPhafA== X-ME-Sender: X-ME-Proxy: Received: from [192.168.1.3] (unknown [71.212.134.3]) by mail.messagingengine.com (Postfix) with ESMTPA id 9610BE519A; Tue, 13 Nov 2018 09:45:50 -0500 (EST) Subject: Re: Plpgsql search_path issue going from 9.3 to 9.6 To: George Woodring , pavel.stehule@gmail.com Cc: pgsql-general References: From: Adrian Klaver Message-ID: Date: Tue, 13 Nov 2018 06:45:49 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 11/13/18 6:27 AM, George Woodring wrote: > I think the issue is that the function is not putting the data into the > tickets%ROWTYPE correctly.  When I do \d on public.tickets and > iss-hackers.tickets, the columns are in a different order. > > > The error message is saying column2 is not a timestamp, which the public > table is a timestamp for column2.  If I change my SELECT in the function > from SELECT * to SELECT opendate  I can fix my issue easily. Or change this: SELECT * INTO ticket FROM tickets WHERE ticketsid=tid; to: SELECT * INTO ticket FROM public.tickets WHERE ticketsid=tid; This will match the ROWTYPE: ticket public.tickets%ROWTYPE; > > George > iGLASS Networks > www.iglass.net > > -- Adrian Klaver adrian.klaver@aklaver.com