pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: mdione@grulic.org.ar
Cc: pgsql-docs@lists.postgresql.org
Subject: Re: Exponentiation example not clear
Date: Wed, 21 Jul 2021 18:05:45 -0400
Message-ID: <727567.1626905145@sss.pgh.pa.us> (raw)
In-Reply-To: <162661954599.693.13700316547731859171@wrigleys.postgresql.org>
References: <162661954599.693.13700316547731859171@wrigleys.postgresql.org>

PG Doc comments form <noreply@postgresql.org> writes:
> Quoting the docs:

> Exponentiation (unlike typical mathematical practice, multiple uses of ^
> will associate left to right)
> 2 ^ 3 → 8
> 2 ^ 3 ^ 3 → 512

> You could probably add 

> 2 ^ (3 ^ 3) → 134217728 # 2 ^27

Seems reasonable, done at

https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=7fa1e1ef741964eeb50f33d7c72622658...

			regards, tom lane





view thread (2+ messages)

Message-ID: <727567.1626905145@sss.pgh.pa.us>
Permalink:  ../727567.1626905145@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/727567.1626905145@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, mdione@grulic.org.ar, pgsql-docs@lists.postgresql.org
  Subject: Re: Exponentiation example not clear
  In-Reply-To: <727567.1626905145@sss.pgh.pa.us>

* 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