Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m305X-0003Vj-8I for pgsql-general@arkaria.postgresql.org; Mon, 12 Jul 2021 17:51:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m305W-0000bu-81 for pgsql-general@arkaria.postgresql.org; Mon, 12 Jul 2021 17:51:26 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m305V-0000bl-TL for pgsql-general@lists.postgresql.org; Mon, 12 Jul 2021 17:51:25 +0000 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1m305T-0004bb-KN for pgsql-general@lists.postgresql.org; Mon, 12 Jul 2021 17:51:25 +0000 Received: by mail-pl1-x636.google.com with SMTP id p17so9096621plf.12 for ; Mon, 12 Jul 2021 10:51:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=i+XKPk/fKOEdQIbecDVrYiWojzLoZUMl09muowsktRA=; b=qBZ3tElzaBzqT+VoNdIUtWHzuLwSD+Ql4H0Fxf5IcBYgXNEwxBTkny79caQUh50/Mh aMtHETbL20fUROoVL0Swo7GCjrcdY6TEf9xf+DK7t9WfyvNObcNNi91xEZACgVzNDU3Z kpPHEXdCFNMesmZZfaBDuyxMKcMTQWhiFLD1o5YPiE4G93XvqdDZcVGFcDoYX51VInu5 2QiKtCigbU/sEvG2M1YiLemM+yXhocNMRJHXBI8qN/Kf3U+GOK/XIP1JMMjeDi6ffqN6 279usKo8H4qswE8zmPcph07JmWBthMCyCUoi2Nbyk/Ml8UpjqtFSGstUbvH5f5aE2vUm oHVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=i+XKPk/fKOEdQIbecDVrYiWojzLoZUMl09muowsktRA=; b=mi/F0P1BHbucazAMdXIDjOU99tfLGWRb0MnoWTVAJFxT0qbHJ9BKqL1UOtIhryZNSk txDNBIARxYQl8qF2oZ8rlczqkhQZV6kCW7WHOWPTu8zJLm8aCXebQcd45jm52LTEx7uO uZTTSLSXwAQJNJxeOs2vOqb2XmcioMu/fV25ekYVcX/cG1syxwLYo7JPyZda11u7hrSu nTfNBFlMTiYxDwUIvBLyD+EonVSYJ2USXC+qULh9Js2bBWpnw3f+FDUiuwIzrKEDu2/1 7epyXq0zLiPKXJTGBW74PfEXLkKbdF50Me8K6olFmyGyK586/CohF+Na2NaswTUR8ff4 nJAQ== X-Gm-Message-State: AOAM533OMdPrGSw/yyUt25agQsCAvDFMyJLHB8zJlsh5w7QGgdJQkLE0 rF9LUj6Oj5zbDKJFOGO/YupMcEeebCQ= X-Google-Smtp-Source: ABdhPJy2lU+UIXeEtGf+PkcH8/WkrN74Zc81Blz/1fFdyR+6opPTF+BNmwV3iFI71MIAgp+ACS+Tsg== X-Received: by 2002:a17:90a:bd8e:: with SMTP id z14mr182573pjr.69.1626112281062; Mon, 12 Jul 2021 10:51:21 -0700 (PDT) Received: from ?IPv6:2601:681:5500:dde0:d1eb:6a44:8bdb:13a5? ([2601:681:5500:dde0:d1eb:6a44:8bdb:13a5]) by smtp.gmail.com with ESMTPSA id c12sm16589273pfl.27.2021.07.12.10.51.20 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 12 Jul 2021 10:51:20 -0700 (PDT) Subject: Re: Use of '&' as table prefix in query To: pgsql-general@lists.postgresql.org References: <2dbe6c30-8b16-6b0f-1d93-026ee71b6eae@gmail.com> From: Rob Sargent Message-ID: <2a6db83e-1201-dda6-fd7a-605ef7299c9b@gmail.com> Date: Mon, 12 Jul 2021 11:51:07 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-CA List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 7/12/21 11:47 AM, Rich Shepard wrote: > On Mon, 12 Jul 2021, Rob Sargent wrote: > >> These look like value substitutions, usually done on the client at it >> sends the sql. How is this sql getting to the server (presumably after >> substitution). > > Rob, > > I was running queries from the psql back then. Now I'm adding a GUI > (tkinter) and using psycopg2. > > Thanks, > > Rich > > Having a hard time seeing the value in p.lname = p.lname and straight sql.