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 1hblVK-0000Uw-R2 for psycopg@arkaria.postgresql.org; Fri, 14 Jun 2019 12:40:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hblVJ-0001W7-N9 for psycopg@arkaria.postgresql.org; Fri, 14 Jun 2019 12:40:25 +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 1hblVJ-0001Vt-FK for psycopg@lists.postgresql.org; Fri, 14 Jun 2019 12:40:25 +0000 Received: from mail.dndg.it ([178.32.136.2]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hblVG-0007nj-QT for psycopg@lists.postgresql.org; Fri, 14 Jun 2019 12:40:25 +0000 Received: from [192.168.2.3] (93-50-194-114.ip153.fastwebnet.it [93.50.194.114]) by mail.dndg.it (Postfix) with ESMTPSA id C896DA02DB for ; Fri, 14 Jun 2019 12:48:40 +0000 (UTC) Subject: Re: Creating dynamically-typed tables using psycopg2's built-in formatting To: psycopg@lists.postgresql.org References: <33071EF2-86DE-4698-BFAA-6F084024A826@thebuild.com> From: Federico Di Gregorio Organization: DNDG srl Message-ID: <2f7e1339-a0aa-a269-17e1-f7c134176f45@dndg.it> Date: Fri, 14 Jun 2019 14:40:20 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: it-IT Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 6/13/19 10:54 PM, Daniel Cohen wrote: > Thanks so much for your response. The uppercase --> lowercase fix worked > for the types, but I'm still only getting tables that can be searched by > double-quotations (i.e. > SELECT * FROM tbl; returns nothing, but > > SELECT * FROM "tbl"; returns the table I uploaded). I can't tell from > your message what the script should say to fix this. Thank you again! From psql use the "\d" command to list all tables and check their names. Send the output here so that we can help you understand why your qury doesn't do what you expect. federico -- Federico Di Gregorio federico.digregorio@dndg.it DNDG srl http://dndg.it The number of the beast: vi vi vi. -- Delexa Jones