ScoopInstaller_Main/postgresql.json
gnsngck 6662c173b7 Adding C collate on initdb
PostgreSQL has a problem to sort some non-latin characters using `ORDER BY` and the known solution is setting `LC_COLLATE` to C.[1][2] Because `LC_COLLATE` is fixed when running `initdb`, it is preclusive to set collation on post installation script for new user.

[1]: https://stackoverflow.com/questions/14191848/postgresql-order-by-is-very-weird
[2]: https://stackoverflow.com/questions/43745639/sort-order-in-postgresql-for-japanese-words-in-hiragana
2018-05-26 01:43:38 +09:00

46 lines
1.5 KiB
JSON

{
"homepage": "https://www.postgresql.org/",
"version": "10.4",
"license": "PostgreSQL",
"architecture": {
"64bit": {
"url": "https://get.enterprisedb.com/postgresql/postgresql-10.4-1-windows-x64-binaries.zip",
"hash": "00c114d578fc64a6b135937620e51041763bd7732445e1b1af44371653fd129a"
},
"32bit": {
"url": "https://get.enterprisedb.com/postgresql/postgresql-10.4-1-windows-binaries.zip",
"hash": "09e1102ca19dc2fb387b128750b8de777190eb568c69236a3222407013155bfe"
}
},
"extract_dir": "pgsql",
"env_add_path": "bin",
"shortcuts": [
[
"pgAdmin 4\\bin\\pgAdmin4.exe",
"pgAdmin 4"
]
],
"persist": "data",
"env_set": {
"PGDATA": "$dir\\data"
},
"post_install": "
if (!(Test-Path \"$dir\\data\\pg_hba.conf\")) { iex \"initdb --username=postgres --encoding=UTF8 --locale=en --lc-collate=c\" }
",
"notes": "To start/stop service, run `pg_ctl start`, `pg_ctl stop`.",
"checkver": {
"url": "https://www.enterprisedb.com/products-services-training/pgbindownload",
"re": "<b>Version ([\\d.]+)"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://get.enterprisedb.com/postgresql/postgresql-$version-1-windows-x64-binaries.zip"
},
"32bit": {
"url": "https://get.enterprisedb.com/postgresql/postgresql-$version-1-windows-binaries.zip"
}
}
}
}