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 1hbpGs-00023C-R6 for psycopg@arkaria.postgresql.org; Fri, 14 Jun 2019 16:41:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hbpGr-0006Oo-M9 for psycopg@arkaria.postgresql.org; Fri, 14 Jun 2019 16:41:45 +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 1hbpGr-0006Og-B9 for psycopg@lists.postgresql.org; Fri, 14 Jun 2019 16:41:45 +0000 Received: from mail-yw1-xc2f.google.com ([2607:f8b0:4864:20::c2f]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hbpGn-0004O3-E3 for psycopg@postgresql.org; Fri, 14 Jun 2019 16:41:44 +0000 Received: by mail-yw1-xc2f.google.com with SMTP id b143so1351238ywb.7 for ; Fri, 14 Jun 2019 09:41:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=berkeley-edu.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XCah/EIzUr7PI8PDeZyrx1F4KlFV7zfSVEYYi0RkpQ4=; b=zGf/GX6KiSv2sgYZac2FUEKs+Z12++3pdzZiBEGUuSfNAjc8g+d7RtYTDRBLH6RQuZ xCJdFmxICWKp7r/UbQ99/baz+yMeggUvsFSQAQ64sZOZogziu+4yRHL6oBZ3LYI3Or0X HgSl6+NppauSmMJHV0bgmgyy4C9HmtAb//ekL9G0I9BusbqSai0XxcmkmabVUljUonzi rgAYhgTuFZ5Sa18CJd/HadTtnJ7JNUky+iBMdEyRpMahVPF2JmzLitIFUFadKZAc7GHN bzfEZIQ+Z1e4sf1YTISYpYizS8n/jxWTYSmlbAIKuqUp/8i7o6JeOq5Tdo610NsaYA+4 mc8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XCah/EIzUr7PI8PDeZyrx1F4KlFV7zfSVEYYi0RkpQ4=; b=hymJQ7LojvRi/3HOLyhpWQ+iho9zEduKQNf/pBStRlVWjXJVzI4BU2k3bQ7tSmdnBy KY1xhmToUWFYydWPN7NM7USDTqf+1ZN6DZownveb8d+Ji5pJN58srYV0H0w7t70RtPCH cpHfYEICl8sWcViPC+AWqfKf0t78Nvg63u3+Me9tisTfjGFvOUKD3f/AGuex/HpQtYMu hSqwT7lQUbP5ttWMEUTlBnG5RctMAYStE0s0Dg3U/dcRUm7H+injw1+VfNAZxE1w7lPB RONsHkurKwa3pynvWK1DLunf/+Al7Qens2O0SQu/SbZ1ObG7+HPDMfJSS+381cln+QCc dOjA== X-Gm-Message-State: APjAAAX0t+Pv24m1YcMs34C4NogXwRTp+kFu5HoPYxyio1CVl7pgM89f 13Vgcnpz7hudQBsEtx47VuJwUjM3wJd//2EkSy51eRFI X-Google-Smtp-Source: APXvYqy3oD9x7cKwYG5683pXtLmcgyj8dBFPiCXsgirFUF9S8LvKsY3xNN0TtS4BpB780Ukqnnz3A7oAAqLqPrOh/GQ= X-Received: by 2002:a81:2fca:: with SMTP id v193mr50154956ywv.296.1560530499288; Fri, 14 Jun 2019 09:41:39 -0700 (PDT) MIME-Version: 1.0 References: <33071EF2-86DE-4698-BFAA-6F084024A826@thebuild.com> In-Reply-To: From: Daniel Cohen Date: Fri, 14 Jun 2019 09:41:28 -0700 Message-ID: Subject: Re: Creating dynamically-typed tables using psycopg2's built-in formatting To: Christophe Pettus Cc: psycopg@postgresql.org Content-Type: multipart/alternative; boundary="000000000000125b96058b4b5287" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --000000000000125b96058b4b5287 Content-Type: text/plain; charset="UTF-8" Hi again, I realize the error was that I specified the name as "schema.tbl", and I think because there was a period in the name, it converted to double-quote. I tried again as just "tbl" and it worked perfectly. Thanks so much for all your help. Best, Danny On Fri, Jun 14, 2019 at 9:12 AM Christophe Pettus wrote: > > > > On Jun 13, 2019, at 13:54, 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). > > By "returns nothing," do you mean you get an error, or that you get zero > rows? > > I'd connect to the database using psql and use \d to see what tables > actually exist. > -- > -- Christophe Pettus > xof@thebuild.com > > --000000000000125b96058b4b5287 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi again,

I realize the erro= r was that I specified the name as "schema.tbl", and I think beca= use there was a period in the name, it converted to double-quote. I tried a= gain as just "tbl" and it worked perfectly. Thanks so much for al= l your help.

Best,

Danny =

On Fri, Jun 14, 2019 at 9:12 AM Christophe Pettus <xof@thebuild.com> wrote:


> On Jun 13, 2019, at 13:54, Daniel Cohen <daniel.m.cohen@berkeley.edu> = wrote:
>
> Thanks so much for your response. The uppercase --> lowercase fix w= orked for the types, but I'm still only getting tables that can be sear= ched by double-quotations (i.e. > SELECT * FROM tbl; returns nothing, bu= t > SELECT * FROM "tbl"; returns the table I uploaded).

By "returns nothing," do you mean you get an error, or that you g= et zero rows?

I'd connect to the database using psql and use \d to see what tables ac= tually exist.=C2=A0
--
-- Christophe Pettus
=C2=A0 =C2=A0xof@theb= uild.com

--000000000000125b96058b4b5287--