Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YEJ8f-0004F9-1g for pgsql-bugs@arkaria.postgresql.org; Thu, 22 Jan 2015 14:53:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YEJ8d-0006mj-Tu for pgsql-bugs@arkaria.postgresql.org; Thu, 22 Jan 2015 14:53:39 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YEJ8c-0006ma-TN for pgsql-bugs@postgresql.org; Thu, 22 Jan 2015 14:53:39 +0000 Received: from mwork.nabble.com ([162.253.133.43]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YEJ8Z-0005Yw-9i for pgsql-bugs@postgresql.org; Thu, 22 Jan 2015 14:53:36 +0000 Received: from msam.nabble.com (unknown [162.253.133.85]) by mwork.nabble.com (Postfix) with ESMTP id D0CD4115F83C for ; Thu, 22 Jan 2015 06:53:35 -0800 (PST) Date: Thu, 22 Jan 2015 07:53:34 -0700 (MST) From: David G Johnston To: pgsql-bugs@postgresql.org Message-ID: <1421938414035-5835023.post@n5.nabble.com> In-Reply-To: <20150122050230.32673.52053@wrigleys.postgresql.org> References: <20150122050230.32673.52053@wrigleys.postgresql.org> Subject: Re: BUG #12625: operation 'union' confirms the type of the column with 2 unknown types. MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.3 (/) 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 yuanchongwei007 wrote > The following bug has been logged on the website: > > Bug reference: 12625 > Logged by: Chongwei Yuan > Email address: > yuanchongwei007@ > PostgreSQL version: 9.3.5 > Operating system: Ubuntu 14.04.1 LTS > Description: > > 1. exce sql [ select 'abc' as col ] ; result : column 'col' has unknow > type. > 2. exce sql [ select 'def' as col ] ; result : column 'col' has unknow > type. > But > 3. exce sql [ select 'abc' as col union select 'def' as col ] ; result : > colum 'col' has text type. This is working as intended. If you have a problem with this you might want to explain what that is. If anything, IMO, the first two queries have the problem, not the third. David J. -- View this message in context: http://postgresql.nabble.com/BUG-12625-operation-union-confirms-the-type-of-the-column-with-2-unknown-types-tp5835012p5835023.html Sent from the PostgreSQL - bugs mailing list archive at Nabble.com. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs