Re: Exponentiation example not clear

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: mdione(at)grulic(dot)org(dot)ar
Cc: pgsql-docs(at)lists(dot)postgresql(dot)org
Subject: Re: Exponentiation example not clear
Date: 2021-07-21 22:05:45
Message-ID: 727567.1626905145@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

PG Doc comments form <noreply(at)postgresql(dot)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=7fa1e1ef741964eeb50f33d7c72622658bb7e5f4

regards, tom lane

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Laurenz Albe 2021-07-22 13:36:11 Re: Improve documentation for pg_upgrade, standbys and rsync
Previous Message Tom Lane 2021-07-21 18:51:38 Re: Link t the souce code