Skip to content

Commit

Permalink
Update load library paths for pgsql 16
Browse files Browse the repository at this point in the history
  • Loading branch information
dixyes committed Jul 24, 2024
1 parent d38accc commit 0c81f90
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ext/src/swow_pgsql_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -2629,6 +2629,7 @@ zend_result swow_pgsql_module_init(INIT_FUNC_ARGS)
// macports/brew
"/opt/local/lib/",
// brew
"/usr/local/Cellar/libpq@16/lib/",
"/usr/local/Cellar/libpq@15/lib/",
"/usr/local/Cellar/libpq@14/lib/",
// brew (new)
Expand All @@ -2642,8 +2643,10 @@ zend_result swow_pgsql_module_init(INIT_FUNC_ARGS)
# elif defined(CAT_OS_WIN)
# define LIBPQ_SO_NAME "libpq.dll"
{
"C:\\Program Files\\PostgreSQL\\16\\bin\\",
"C:\\Program Files\\PostgreSQL\\15\\bin\\",
"C:\\Program Files\\PostgreSQL\\14\\bin\\",
"C:\\Program Files (x86)\\PostgreSQL\\16\\bin\\",
"C:\\Program Files (x86)\\PostgreSQL\\15\\bin\\",
"C:\\Program Files (x86)\\PostgreSQL\\14\\bin\\",
}
Expand Down

0 comments on commit 0c81f90

Please sign in to comment.