pgsql: Remove unused code related to unknown type

2023-02-03 Thread Peter Eisentraut
Remove unused code related to unknown type These are leftovers obsoleted by cfd9be939e9c516243c5b6a49ad1e1a9a38f1052. Reviewed-by: Tom Lane Discussion: https://www.postgresql.org/message-id/flat/e7887965-9e70-fd01-c2d1-5bc02f9169aa%40enterprisedb.com Branch -- master Details ---

pgsql: First-draft release notes for 15.2.

2023-02-03 Thread Tom Lane
First-draft release notes for 15.2. As usual, the release notes for other branches will be made by cutting these down, but put them up for community review first. Branch -- REL_15_STABLE Details --- https://git.postgresql.org/pg/commitdiff/f282b026787da69d88a35404cf62f1cc21cfbb7c

pgsql: Make int64_div_fast_to_numeric() more robust.

2023-02-03 Thread Dean Rasheed
Make int64_div_fast_to_numeric() more robust. The prior coding of int64_div_fast_to_numeric() had a number of bugs that would cause it to fail under different circumstances, such as with log10val2 <= 0, or log10val2 a multiple of 4, or in the "slow" numeric path with log10val2 >= 10. None of

pgsql: Make int64_div_fast_to_numeric() more robust.

2023-02-03 Thread Dean Rasheed
Make int64_div_fast_to_numeric() more robust. The prior coding of int64_div_fast_to_numeric() had a number of bugs that would cause it to fail under different circumstances, such as with log10val2 <= 0, or log10val2 a multiple of 4, or in the "slow" numeric path with log10val2 >= 10. None of

pgsql: Make int64_div_fast_to_numeric() more robust.

2023-02-03 Thread Dean Rasheed
Make int64_div_fast_to_numeric() more robust. The prior coding of int64_div_fast_to_numeric() had a number of bugs that would cause it to fail under different circumstances, such as with log10val2 <= 0, or log10val2 a multiple of 4, or in the "slow" numeric path with log10val2 >= 10. None of

pgsql: doc: Fix XML formatting that psql cannot handle

2023-02-03 Thread Peter Eisentraut
doc: Fix XML formatting that psql cannot handle Breaking over two lines is not handled by psql's create_help.pl. (It creates faulty \help output.) Undo the formatting change introduced by 9bdad1b5153e5d6b77a8f9c6e32286d6bafcd76d to fix this for now. Branch -- REL_15_STABLE Details

pgsql: doc: Fix XML formatting that psql cannot handle

2023-02-03 Thread Peter Eisentraut
doc: Fix XML formatting that psql cannot handle Breaking over two lines is not handled by psql's create_help.pl. (It creates faulty \help output.) Undo the formatting change introduced by 9bdad1b5153e5d6b77a8f9c6e32286d6bafcd76d to fix this for now. Branch -- REL_11_STABLE Details

pgsql: doc: Fix XML formatting that psql cannot handle

2023-02-03 Thread Peter Eisentraut
doc: Fix XML formatting that psql cannot handle Breaking over two lines is not handled by psql's create_help.pl. (It creates faulty \help output.) Undo the formatting change introduced by 9bdad1b5153e5d6b77a8f9c6e32286d6bafcd76d to fix this for now. Branch -- REL_14_STABLE Details

pgsql: doc: Fix XML formatting that psql cannot handle

2023-02-03 Thread Peter Eisentraut
doc: Fix XML formatting that psql cannot handle Breaking over two lines is not handled by psql's create_help.pl. (It creates faulty \help output.) Undo the formatting change introduced by 9bdad1b5153e5d6b77a8f9c6e32286d6bafcd76d to fix this for now. Branch -- master Details ---

pgsql: doc: Fix XML formatting that psql cannot handle

2023-02-03 Thread Peter Eisentraut
doc: Fix XML formatting that psql cannot handle Breaking over two lines is not handled by psql's create_help.pl. (It creates faulty \help output.) Undo the formatting change introduced by 9bdad1b5153e5d6b77a8f9c6e32286d6bafcd76d to fix this for now. Branch -- REL_12_STABLE Details

pgsql: doc: Fix XML formatting that psql cannot handle

2023-02-03 Thread Peter Eisentraut
doc: Fix XML formatting that psql cannot handle Breaking over two lines is not handled by psql's create_help.pl. (It creates faulty \help output.) Undo the formatting change introduced by 9bdad1b5153e5d6b77a8f9c6e32286d6bafcd76d to fix this for now. Branch -- REL_13_STABLE Details

Re: pgsql: Ensure that numeric.c compiles with other NBASE values.

2023-02-03 Thread Dean Rasheed
On Fri, 3 Feb 2023 at 01:18, Tom Lane wrote: > > Dean Rasheed writes: > > > 1). It doesn't work if log10val2 < 0, because then m < 0, and it > > doesn't multiply by the remainder. And it then throws an overflow > > error, because result.dscale comes out wrong when m < 0. > > I'm not quite sure