pgpass replacement? #3601
-
|
Connecting to a database using environment variables and pgpass, I now see a deprecation notice. The notice suggests using a function to return a password, which is fair enough. However, it seems to me like that requires me to reimplement the libpq environment parsing to work, as that function gets no arguments, and the pgpass module doesn't read the environment. Is there an actually simple way to do this? Also, one instance of the word function gets spelled 'funciton' in the notice. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Hmmn sorry I'm not entiiiirely understanding your question. If your password is in the environment variable Oh....I see the Also, ty for the heads up wrt the function misspelling. I'll get that fixed as well. 😄 |
Beta Was this translation helpful? Give feedback.
-
|
@anarchodin #3602 should fix this for you! The reason I want to remove explicit dependency on pgpass is its not commonly used and I want to keep 3rd party dependencies to an absolute minimum so this makes it an optional thing & lets pg itself be extensible w/o having to ship as many modules I don't control. |
Beta Was this translation helpful? Give feedback.
@anarchodin #3602 should fix this for you! The reason I want to remove explicit dependency on pgpass is its not commonly used and I want to keep 3rd party dependencies to an absolute minimum so this makes it an optional thing & lets pg itself be extensible w/o having to ship as many modules I don't control.