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 1m30GL-0003wh-QP for pgsql-general@arkaria.postgresql.org; Mon, 12 Jul 2021 18:02:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m30GK-00063t-Dy for pgsql-general@arkaria.postgresql.org; Mon, 12 Jul 2021 18:02:36 +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 1m30GK-00063F-4u for pgsql-general@lists.postgresql.org; Mon, 12 Jul 2021 18:02:36 +0000 Received: from mail.appl-ecosys.com ([50.126.108.78]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m30GH-0004fq-TW for pgsql-general@lists.postgresql.org; Mon, 12 Jul 2021 18:02:35 +0000 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id 714332A0106 for ; Mon, 12 Jul 2021 11:02:31 -0700 (PDT) Date: Mon, 12 Jul 2021 11:02:31 -0700 (PDT) From: Rich Shepard To: pgsql-general@lists.postgresql.org Subject: Re: Use of '&' as table prefix in query In-Reply-To: Message-ID: References: <2985165.1626111400@sss.pgh.pa.us> User-Agent: Alpine 2.20 (LNX 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, 12 Jul 2021, Adrian Klaver wrote: > You should also follow Tom's suggestion and do: > \do+ & > in psql. It's the bitwise 'and': # \do+ & List of operators Schema | Name | Left arg type | Right arg type | Result type | Function | Description ------------+------+---------------+----------------+-------------+--------------+------------- pg_catalog | & | bigint | bigint | bigint | int8and | bitwise and pg_catalog | & | bit | bit | bit | bitand | bitwise and pg_catalog | & | inet | inet | inet | inetand | bitwise and pg_catalog | & | integer | integer | integer | int4and | bitwise and pg_catalog | & | macaddr | macaddr | macaddr | macaddr_and | bitwise and pg_catalog | & | macaddr8 | macaddr8 | macaddr8 | macaddr8_and | bitwise and pg_catalog | & | smallint | smallint | smallint | int2and | bitwise and (7 rows) which doesn't seem appropriate in this context. Thanks, Rich