You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Unix, an absolute path name begins with a slash. On Windows, paths starting with drive letters are also recognized.
Right now, pgx (through pgconn) does not support using a Unix socket on Windows and instead assumes all Unix sockets begin with a forward slash. If pgx were to change this assumption, pgx would support Unix sockets on Windows. Using a forked copy of pgconn, I've verified this change works on Windows Server 2019.
Here are the two places that would need to change:
Windows has added support for Unix sockets. Postgres also includes support for Unix sockets on Windows:
Right now, pgx (through pgconn) does not support using a Unix socket on Windows and instead assumes all Unix sockets begin with a forward slash. If pgx were to change this assumption, pgx would support Unix sockets on Windows. Using a forked copy of pgconn, I've verified this change works on Windows Server 2019.
Here are the two places that would need to change:
Rather than:
The code could be:
where
isWindowsPath
checks if the provided string begins with a capital letter A-Z followed by a colon and a backslash (e.g.,C:\
).Would there be any interest in accepting this feature request?
The text was updated successfully, but these errors were encountered: