pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rich Shepard <rshepard@appl-ecosys.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Use of '&' as table prefix in query
Date: Mon, 12 Jul 2021 11:02:31 -0700 (PDT)
Message-ID: <alpine.LNX.2.20.2107121101020.7804@salmo.appl-ecosys.com> (raw)
In-Reply-To: <e67f712a-a145-38b7-f660-f7d11b78bbf7@aklaver.com>
References: <alpine.LNX.2.20.2107121021040.7804@salmo.appl-ecosys.com>
	<2985165.1626111400@sss.pgh.pa.us>
	<alpine.LNX.2.20.2107121044320.7804@salmo.appl-ecosys.com>
	<e67f712a-a145-38b7-f660-f7d11b78bbf7@aklaver.com>

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





view thread (10+ messages)  latest in thread

Message-ID: <alpine.LNX.2.20.2107121101020.7804@salmo.appl-ecosys.com>
Permalink:  ../alpine.LNX.2.20.2107121101020.7804@salmo.appl-ecosys.com/
Also on:    postgresql.org/message-id/alpine.LNX.2.20.2107121101020.7804@salmo.appl-ecosys.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: rshepard@appl-ecosys.com
  Subject: Re: Use of '&' as table prefix in query
  In-Reply-To: <alpine.LNX.2.20.2107121101020.7804@salmo.appl-ecosys.com>
  References: <alpine.LNX.2.20.2107121021040.7804@salmo.appl-ecosys.com> <2985165.1626111400@sss.pgh.pa.us> <alpine.LNX.2.20.2107121044320.7804@salmo.appl-ecosys.com> <e67f712a-a145-38b7-f660-f7d11b78bbf7@aklaver.com> <alpine.LNX.2.20.2107121101020.7804@salmo.appl-ecosys.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox