Re: Exponentiation example not clear

2021-07-21 Thread Tom Lane
PG Doc comments form 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.postgresq

Re: Link t the souce code

2021-07-21 Thread Tom Lane
Alvaro Herrera writes: > On 2021-Jul-21, Tom Lane wrote: >> I'm having qualms about recommending this in this particular spot, >> rather than back in Appendix I. Seems like the wrong audience is >> going to be reading this chapter. > Well, we can remove that first paragraph from there and just r

Re: Link t the souce code

2021-07-21 Thread Tom Lane
Peter Eisentraut writes: > On 21.07.21 19:21, Alvaro Herrera wrote: >> Oh, so the current `tar x` knows to uncompress the file without any >> additional options? I've been pointlessly adding 'z', 'j', 'a' for years ... >> That means we can remove the `gunzip` line and replace it with nothing. >

Re: Link t the souce code

2021-07-21 Thread Alvaro Herrera
On 2021-Jul-21, Tom Lane wrote: > Hm ... actually, now that I read the committed patch, I realize that > it's effectively recommending that people build their installations > from the latest commit on master. That might be what aspiring PG > hackers want to do, but it's quite unlikely that Joe DB

Re: Link t the souce code

2021-07-21 Thread Tom Lane
Alvaro Herrera writes: > Seems reasonable -- pushed with that last change. Hm ... actually, now that I read the committed patch, I realize that it's effectively recommending that people build their installations from the latest commit on master. That might be what aspiring PG hackers want to do,

Re: Link t the souce code

2021-07-21 Thread Peter Eisentraut
On 21.07.21 19:21, Alvaro Herrera wrote: On 2021-Jul-21, Peter Eisentraut wrote: On 21.07.21 01:45, Alvaro Herrera wrote: -gunzip postgresql-&version;.tar.gz -tar xf postgresql-&version;.tar +tar xfa postgresql-&version;.tar.gz The "a" option only applies when creating a tar archiv

Re: Link t the souce code

2021-07-21 Thread Alvaro Herrera
On 2021-Jul-21, Tom Lane wrote: > Alvaro Herrera writes: > > That means we can remove the `gunzip` line and replace it with nothing. > > WFM ... > > WFM too. The other thing I wonder about is whether the example shouldn't > be assuming that you chose the .bz2 file instead of the .gz one. Seem

Re: Link t the souce code

2021-07-21 Thread Tom Lane
Alvaro Herrera writes: > Oh, so the current `tar x` knows to uncompress the file without any > additional options? I've been pointlessly adding 'z', 'j', 'a' for years ... I wonder whether that's GNU-tar-specific. But we have GNU-isms elsewhere, eg we removed references to "gmake" years ago. I

Re: Link t the souce code

2021-07-21 Thread Alvaro Herrera
On 2021-Jul-21, Peter Eisentraut wrote: > On 21.07.21 01:45, Alvaro Herrera wrote: > > > > -gunzip postgresql-&version;.tar.gz > > -tar xf postgresql-&version;.tar > > +tar xfa postgresql-&version;.tar.gz > > > > The "a" option only applies when creating a tar archive ("c" command). So > ad

Re: Link t the souce code

2021-07-21 Thread Peter Eisentraut
On 21.07.21 01:45, Alvaro Herrera wrote: -gunzip postgresql-&version;.tar.gz -tar xf postgresql-&version;.tar +tar xfa postgresql-&version;.tar.gz The "a" option only applies when creating a tar archive ("c" command). So adding it here does nothing.