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 1hbWRQ-00008a-5w for psycopg@arkaria.postgresql.org; Thu, 13 Jun 2019 20:35:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hbWRO-0004Zi-LY for psycopg@arkaria.postgresql.org; Thu, 13 Jun 2019 20:35:22 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hbWRO-0004Za-BP for psycopg@lists.postgresql.org; Thu, 13 Jun 2019 20:35:22 +0000 Received: from smtp85.iad3a.emailsrvr.com ([173.203.187.85]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hbWRL-0007wP-9h for psycopg@postgresql.org; Thu, 13 Jun 2019 20:35:21 +0000 X-Auth-ID: xof@thebuild.com Received: by smtp11.relay.iad3a.emailsrvr.com (Authenticated sender: xof-AT-thebuild.com) with ESMTPSA id 5B5D1537E; Thu, 13 Jun 2019 16:35:17 -0400 (EDT) X-Sender-Id: xof@thebuild.com Received: from [10.1.1.139] (sfosj0215mups301.wiline.com [67.207.108.210]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:587 (trex/5.7.12); Thu, 13 Jun 2019 16:35:17 -0400 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: Creating dynamically-typed tables using psycopg2's built-in formatting From: Christophe Pettus In-Reply-To: Date: Thu, 13 Jun 2019 13:35:15 -0700 Cc: "psycopg@postgresql.org" Content-Transfer-Encoding: quoted-printable Message-Id: <628DF67F-7CFE-48DD-B01D-D7D7C9B53894@thebuild.com> References: To: David Raymond X-Mailer: Apple Mail (2.3445.9.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On Jun 13, 2019, at 13:29, David Raymond = wrote: > For the capitalization thing basically what's going on is two things. = (The way I understand it) > 1) Postgres IS case sensitive. > 2) When any query gets sent to the server, the server converts = everything not inside quotes to lower case as step 1, _before_ trying to = match names for tables, columns, functions, etc. It's a bit more elaborate than that, although that's not a bad summary = of the perceived result. The details are here: = https://www.postgresql.org/docs/current/sql-syntax-lexical.html#SQL-SYNTAX= -IDENTIFIERS\ -- -- Christophe Pettus xof@thebuild.com