Skip to content

Commit addf9d5

Browse files
author
Thomas G. Lockhart
committed
Include recipe for updating pg_aggregate to fix avg(money) function.
1 parent b268758 commit addf9d5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

migration/6.2_to_6.2.1

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,11 @@ but is required from any release prior to v6.2.
44
In upgrading from v6.2, if you choose to dump/reload you will find that
55
avg(money) is now calculated correctly. All other bug fixes take effect
66
upon updating the executables.
7+
8+
Another way to avoid dump/reload is to use the following SQL command
9+
from psql to update the existing system table:
10+
11+
update pg_aggregate set aggfinalfn = 'cash_div_flt8'
12+
where aggname = 'avg' and aggbasetype = 790;
13+
14+
This will need to be done to every existing database, including template1.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy