<h3 dir="auto">Describe the bug</h3>
<p dir="auto">Using SQLAlchemy with AWS Redshift (<a href="https://docs.aws.amazon.com/redshift/latest/mgmt/cluster-versions.html" rel="nofollow">1.0.47357</a>).</p>
<p dir="auto">After upgrading to:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="SQLAlchemy==2.0.6
psycopg2-binary==2.9.5"><pre class="notranslate"><code class="notranslate">SQLAlchemy==2.0.6
psycopg2-binary==2.9.5
</code></pre></div>
<p dir="auto">I am getting:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedObject) unrecognized configuration parameter &quot;standard_conforming_strings&quot;"><pre class="notranslate"><code class="notranslate">sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedObject) unrecognized configuration parameter "standard_conforming_strings"
</code></pre></div>
<p dir="auto">Tried connecting with:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="connect_args = {'options': '-c standard_conforming_strings=off'}
create_engine(self.connection_string, pool_pre_ping=True, connect_args=connect_args)"><pre class="notranslate"><code class="notranslate">connect_args = {'options': '-c standard_conforming_strings=off'}
create_engine(self.connection_string, pool_pre_ping=True, connect_args=connect_args)
</code></pre></div>
<p dir="auto">as ChatGPT suggested, getting a different, but similar error message:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at &quot;&lt;redshift-host&gt;&quot; (&lt;redshift-ip&gt;), port 5439 failed: FATAL:  unrecognized configuration parameter &quot;standard_conforming_strings&quot;"><pre class="notranslate"><code class="notranslate">sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "&lt;redshift-host&gt;" (&lt;redshift-ip&gt;), port 5439 failed: FATAL:  unrecognized configuration parameter "standard_conforming_strings"
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="python --version
Python 3.9.16"><pre class="notranslate"><code class="notranslate">python --version
Python 3.9.16
</code></pre></div>
<h3 dir="auto">Optional link from <a href="https://docs.sqlalchemy.org" rel="nofollow">https://docs.sqlalchemy.org</a> which documents the behavior that is expected</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">SQLAlchemy Version in Use</h3>
<p dir="auto">SQLAlchemy==2.0.6</p>
<h3 dir="auto">DBAPI (i.e. the database driver)</h3>
<p dir="auto">psycopg2-binary==2.9.5</p>
<h3 dir="auto">Database Vendor and Major Version</h3>
<p dir="auto">Redshift 1.0.47357</p>
<h3 dir="auto">Python Version</h3>
<p dir="auto">Python 3.9.16</p>
<h3 dir="auto">Operating system</h3>
<p dir="auto">OSX</p>
<h3 dir="auto">To Reproduce</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="create_engine(connection_string, pool_pre_ping=True)

# or 

connect_args = {'options': '-cstandard_conforming_strings=off'}
# or
# connect_args = {'options': '-c standard_conforming_strings=off'}
create_engine(connection_string, pool_pre_ping=True, connect_args=connect_args)"><pre class="notranslate"><span class="pl-en">create_engine</span>(<span class="pl-s1">connection_string</span>, <span class="pl-s1">pool_pre_ping</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)

<span class="pl-c"># or </span>

<span class="pl-s1">connect_args</span> <span class="pl-c1">=</span> {<span class="pl-s">'options'</span>: <span class="pl-s">'-cstandard_conforming_strings=off'</span>}
<span class="pl-c"># or</span>
<span class="pl-c"># connect_args = {'options': '-c standard_conforming_strings=off'}</span>
<span class="pl-en">create_engine</span>(<span class="pl-s1">connection_string</span>, <span class="pl-s1">pool_pre_ping</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">connect_args</span><span class="pl-c1">=</span><span class="pl-s1">connect_args</span>)</pre></div>
<h3 dir="auto">Error</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
  File &quot;/src/.ve/lib/python3.9/site-packages/sqlalchemy/engine/base.py&quot;, line 1964, in _exec_single_context
    self.dialect.do_execute(
  File &quot;/src/.ve/lib/python3.9/site-packages/sqlalchemy/engine/default.py&quot;, line 748, in do_execute
    cursor.execute(statement, parameters)
psycopg2.errors.UndefinedObject: unrecognized configuration parameter &quot;standard_conforming_strings&quot;


The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File &quot;/opt/homebrew/Cellar/python@3.9/3.9.16/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py&quot;, line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File &quot;/opt/homebrew/Cellar/python@3.9/3.9.16/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py&quot;, line 87, in _run_code
    exec(code, run_globals)
  File &quot;/src/.ve/lib/python3.9/site-packages/lru/decorators.py&quot;, line 132, in _lazy_cache_wrapper
    result = function(*args, **kwargs)
  File &quot;/src/mypackage/redshift.py&quot;, line 164, in tier1_partners
    rs.connect()
  File &quot;/src/.ve/lib/python3.9/site-packages/maa/db.py&quot;, line 69, in connect
    self._connection = self._engine.connect()
  File &quot;/src/.ve/lib/python3.9/site-packages/sqlalchemy/engine/base.py&quot;, line 3251, in connect
    return self._connection_cls(self)
  File &quot;/src/.ve/lib/python3.9/site-packages/sqlalchemy/engine/base.py&quot;, line 145, in __init__
    self._dbapi_connection = engine.raw_connection()
  File &quot;/src/.ve/lib/python3.9/site-packages/sqlalchemy/engine/base.py&quot;, line 3275, in raw_connection
    return self.pool.connect()
  File &quot;/src/.ve/lib/python3.9/site-packages/sqlalchemy/pool/base.py&quot;, line 455, in connect
    return _ConnectionFairy._checkout(self)
  File &quot;/src/.ve/lib/python3.9/site-packages/sqlalchemy/pool/base.py&quot;, line 1271, in _checkout
    fairy = _ConnectionRecord.checkout(pool)
  File &quot;/src/.ve/lib/python3.9/site-packages/sqlalchemy/pool/base.py&quot;, line 719, in checkout
    rec = pool._do_get()
  File &quot;/src/.ve/lib/python3.9/site-packages/sqlalchemy/pool/impl.py&quot;, line 169, in _do_get
    self._dec_overflow()
  File &quot;/src/.ve/lib/python3.9/site-packages/sqlalchemy/util/langhelpers.py&quot;, line 147, in __exit__
    raise exc_value.with_traceback(exc_tb)
  File &quot;/src/.ve/lib/python3.9/site-packages/sqlalchemy/pool/impl.py&quot;, line 166, in _do_get
    return self._create_connection()
  File &quot;/src/.ve/lib/python3.9/site-packages/sqlalchemy/pool/base.py&quot;, line 396, in _create_connection
    return _ConnectionRecord(self)
  File &quot;/src/.ve/lib/python3.9/site-packages/sqlalchemy/pool/base.py&quot;, line 681, in __init__
    self.__connect()
  File &quot;/src/.ve/lib/python3.9/site-packages/sqlalchemy/pool/base.py&quot;, line 917, in __connect
    pool.dispatch.connect.for_modify(
  File &quot;/src/.ve/lib/python3.9/site-packages/sqlalchemy/event/attr.py&quot;, line 473, in _exec_w_sync_on_first_run
    self(*args, **kw)
  File &quot;/src/.ve/lib/python3.9/site-packages/sqlalchemy/event/attr.py&quot;, line 487, in __call__
    fn(*args, **kw)
  File &quot;/src/.ve/lib/python3.9/site-packages/sqlalchemy/util/langhelpers.py&quot;, line 1912, in go
    return once_fn(*arg, **kw)
  File &quot;/src/.ve/lib/python3.9/site-packages/sqlalchemy/engine/create.py&quot;, line 747, in first_connect
    dialect.initialize(c)
  File &quot;/src/.ve/lib/python3.9/site-packages/sqlalchemy/dialects/postgresql/psycopg2.py&quot;, line 654, in initialize
    super().initialize(connection)
  File &quot;/src/.ve/lib/python3.9/site-packages/sqlalchemy/dialects/postgresql/base.py&quot;, line 3033, in initialize
    std_string = connection.exec_driver_sql(
  File &quot;/src/.ve/lib/python3.9/site-packages/sqlalchemy/engine/base.py&quot;, line 1772, in exec_driver_sql
    ret = self._execute_context(
  File &quot;/src/.ve/lib/python3.9/site-packages/sqlalchemy/engine/base.py&quot;, line 1842, in _execute_context
    return self._exec_single_context(
  File &quot;/src/.ve/lib/python3.9/site-packages/sqlalchemy/engine/base.py&quot;, line 1983, in _exec_single_context
    self._handle_dbapi_exception(
  File &quot;/src/.ve/lib/python3.9/site-packages/sqlalchemy/engine/base.py&quot;, line 2326, in _handle_dbapi_exception
    raise sqlalchemy_exception.with_traceback(exc_info[2]) from e
  File &quot;/src/.ve/lib/python3.9/site-packages/sqlalchemy/engine/base.py&quot;, line 1964, in _exec_single_context
    self.dialect.do_execute(
  File &quot;/src/.ve/lib/python3.9/site-packages/sqlalchemy/engine/default.py&quot;, line 748, in do_execute
    cursor.execute(statement, parameters)
sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedObject) unrecognized configuration parameter &quot;standard_conforming_strings&quot;"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
  File "/src/.ve/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1964, in _exec_single_context
    self.dialect.do_execute(
  File "/src/.ve/lib/python3.9/site-packages/sqlalchemy/engine/default.py", line 748, in do_execute
    cursor.execute(statement, parameters)
psycopg2.errors.UndefinedObject: unrecognized configuration parameter "standard_conforming_strings"


The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/homebrew/Cellar/python@3.9/3.9.16/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/opt/homebrew/Cellar/python@3.9/3.9.16/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/src/.ve/lib/python3.9/site-packages/lru/decorators.py", line 132, in _lazy_cache_wrapper
    result = function(*args, **kwargs)
  File "/src/mypackage/redshift.py", line 164, in tier1_partners
    rs.connect()
  File "/src/.ve/lib/python3.9/site-packages/maa/db.py", line 69, in connect
    self._connection = self._engine.connect()
  File "/src/.ve/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 3251, in connect
    return self._connection_cls(self)
  File "/src/.ve/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 145, in __init__
    self._dbapi_connection = engine.raw_connection()
  File "/src/.ve/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 3275, in raw_connection
    return self.pool.connect()
  File "/src/.ve/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 455, in connect
    return _ConnectionFairy._checkout(self)
  File "/src/.ve/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 1271, in _checkout
    fairy = _ConnectionRecord.checkout(pool)
  File "/src/.ve/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 719, in checkout
    rec = pool._do_get()
  File "/src/.ve/lib/python3.9/site-packages/sqlalchemy/pool/impl.py", line 169, in _do_get
    self._dec_overflow()
  File "/src/.ve/lib/python3.9/site-packages/sqlalchemy/util/langhelpers.py", line 147, in __exit__
    raise exc_value.with_traceback(exc_tb)
  File "/src/.ve/lib/python3.9/site-packages/sqlalchemy/pool/impl.py", line 166, in _do_get
    return self._create_connection()
  File "/src/.ve/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 396, in _create_connection
    return _ConnectionRecord(self)
  File "/src/.ve/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 681, in __init__
    self.__connect()
  File "/src/.ve/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 917, in __connect
    pool.dispatch.connect.for_modify(
  File "/src/.ve/lib/python3.9/site-packages/sqlalchemy/event/attr.py", line 473, in _exec_w_sync_on_first_run
    self(*args, **kw)
  File "/src/.ve/lib/python3.9/site-packages/sqlalchemy/event/attr.py", line 487, in __call__
    fn(*args, **kw)
  File "/src/.ve/lib/python3.9/site-packages/sqlalchemy/util/langhelpers.py", line 1912, in go
    return once_fn(*arg, **kw)
  File "/src/.ve/lib/python3.9/site-packages/sqlalchemy/engine/create.py", line 747, in first_connect
    dialect.initialize(c)
  File "/src/.ve/lib/python3.9/site-packages/sqlalchemy/dialects/postgresql/psycopg2.py", line 654, in initialize
    super().initialize(connection)
  File "/src/.ve/lib/python3.9/site-packages/sqlalchemy/dialects/postgresql/base.py", line 3033, in initialize
    std_string = connection.exec_driver_sql(
  File "/src/.ve/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1772, in exec_driver_sql
    ret = self._execute_context(
  File "/src/.ve/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1842, in _execute_context
    return self._exec_single_context(
  File "/src/.ve/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1983, in _exec_single_context
    self._handle_dbapi_exception(
  File "/src/.ve/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 2326, in _handle_dbapi_exception
    raise sqlalchemy_exception.with_traceback(exc_info[2]) from e
  File "/src/.ve/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1964, in _exec_single_context
    self.dialect.do_execute(
  File "/src/.ve/lib/python3.9/site-packages/sqlalchemy/engine/default.py", line 748, in do_execute
    cursor.execute(statement, parameters)
sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedObject) unrecognized configuration parameter "standard_conforming_strings"
</code></pre></div>
<h3 dir="auto">Additional context</h3>
<p dir="auto">thx for checking</p>
<h3 dir="auto">Describe the bug</h3>
<p dir="auto">I believe there is a regression of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="742828306" data-permission-text="Title is private" data-url="https://github.com/sqlalchemy/sqlalchemy/issues/5698" data-hovercard-type="issue" data-hovercard-url="/sqlalchemy/sqlalchemy/issues/5698/hovercard" href="https://github.com/sqlalchemy/sqlalchemy/issues/5698">#5698</a> in 2.0.0</p>
<p dir="auto">I get the below error after updating from 1.4.46 and have confirmed it present in 2.0.0 - 2.0.5.post1</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="UndefinedObject: unrecognized configuration parameter &quot;standard_conforming_strings&quot;"><pre class="notranslate"><code class="notranslate">UndefinedObject: unrecognized configuration parameter "standard_conforming_strings"
</code></pre></div>
<p dir="auto">The logic added in  <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/sqlalchemy/sqlalchemy/commit/415ddce1e3b429bdc1180c5b5f7750a08d226525/hovercard" href="https://github.com/sqlalchemy/sqlalchemy/commit/415ddce1e3b429bdc1180c5b5f7750a08d226525"><tt>415ddce</tt></a><br>
does not appear to be present in 2.0.0</p>
<p dir="auto">It appears to have been removed in <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/sqlalchemy/sqlalchemy/commit/db08a699489c9b0259579d7ff7fd6bf3496ca3a2/hovercard" href="https://github.com/sqlalchemy/sqlalchemy/commit/db08a699489c9b0259579d7ff7fd6bf3496ca3a2"><tt>db08a69</tt></a></p>
<p dir="auto">as seen in<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/4827852/223449134-3003f53c-3629-4e8d-85e7-64bf80a33bd8.png"><img src="https://user-images.githubusercontent.com/4827852/223449134-3003f53c-3629-4e8d-85e7-64bf80a33bd8.png" alt="Screenshot 2023-03-07 at 8 18 23 AM" style="max-width: 100%;"></a></p>
<h3 dir="auto">Optional link from <a href="https://docs.sqlalchemy.org" rel="nofollow">https://docs.sqlalchemy.org</a> which documents the behavior that is expected</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">SQLAlchemy Version in Use</h3>
<p dir="auto">2.0.5post1</p>
<h3 dir="auto">DBAPI (i.e. the database driver)</h3>
<p dir="auto">psycopg2</p>
<h3 dir="auto">Database Vendor and Major Version</h3>
<p dir="auto">Redshift 1.0.46987</p>
<h3 dir="auto">Python Version</h3>
<p dir="auto">3.10</p>
<h3 dir="auto">Operating system</h3>
<p dir="auto">OSX</p>
<h3 dir="auto">To Reproduce</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import sqlalchemy
from sqlalchemy.orm import sessionmaker
from sqlalchemy import text

connection_string = 'postgresql+psycopg2://&lt;redacted username&gt;:&lt;redacted url encoded password&gt;@&lt;redacted db hostname&gt;:&lt;redacted port&gt;/&lt;redacted database&gt;'

redshift_engine = sqlalchemy.create_engine(connection_string, echo=False, pool_recycle=120, pool_pre_ping=True)

redshift_session = sessionmaker(bind=redshift_engine)

tmp_session = redshift_session()
tmp_session.query(text(&quot;SELECT * from my_schema.my_table limit 10&quot;)).all()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">sqlalchemy</span>
<span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-s1">orm</span> <span class="pl-k">import</span> <span class="pl-s1">sessionmaker</span>
<span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span> <span class="pl-k">import</span> <span class="pl-s1">text</span>

<span class="pl-s1">connection_string</span> <span class="pl-c1">=</span> <span class="pl-s">'postgresql+psycopg2://&lt;redacted username&gt;:&lt;redacted url encoded password&gt;@&lt;redacted db hostname&gt;:&lt;redacted port&gt;/&lt;redacted database&gt;'</span>

<span class="pl-s1">redshift_engine</span> <span class="pl-c1">=</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-en">create_engine</span>(<span class="pl-s1">connection_string</span>, <span class="pl-s1">echo</span><span class="pl-c1">=</span><span class="pl-c1">False</span>, <span class="pl-s1">pool_recycle</span><span class="pl-c1">=</span><span class="pl-c1">120</span>, <span class="pl-s1">pool_pre_ping</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)

<span class="pl-s1">redshift_session</span> <span class="pl-c1">=</span> <span class="pl-en">sessionmaker</span>(<span class="pl-s1">bind</span><span class="pl-c1">=</span><span class="pl-s1">redshift_engine</span>)

<span class="pl-s1">tmp_session</span> <span class="pl-c1">=</span> <span class="pl-en">redshift_session</span>()
<span class="pl-s1">tmp_session</span>.<span class="pl-en">query</span>(<span class="pl-en">text</span>(<span class="pl-s">"SELECT * from my_schema.my_table limit 10"</span>)).<span class="pl-en">all</span>()</pre></div>
<h3 dir="auto">Error</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/engine/base.py&quot;, line 1964, in _exec_single_context
    self.dialect.do_execute(
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/engine/default.py&quot;, line 747, in do_execute
    cursor.execute(statement, parameters)
psycopg2.errors.UndefinedObject: unrecognized configuration parameter &quot;standard_conforming_strings&quot;
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File &quot;/home/username/Downloads/pycharm-2022.3.2/plugins/python/helpers/pydev/pydevconsole.py&quot;, line 364, in runcode
    coro = func()
  File &quot;&lt;input&gt;&quot;, line 1, in &lt;module&gt;
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/orm/query.py&quot;, line 2715, in all
    return self._iter().all()  # type: ignore
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/orm/query.py&quot;, line 2875, in _iter
    result: Union[ScalarResult[_T], Result[_T]] = self.session.execute(
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/orm/session.py&quot;, line 2229, in execute
    return self._execute_internal(
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/orm/session.py&quot;, line 2114, in _execute_internal
    conn = self._connection_for_bind(bind)
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/orm/session.py&quot;, line 1981, in _connection_for_bind
    return trans._connection_for_bind(engine, execution_options)
  File &quot;&lt;string&gt;&quot;, line 2, in _connection_for_bind
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/orm/state_changes.py&quot;, line 137, in _go
    ret_value = fn(self, *arg, **kw)
  File &quot;/home/username/.local/share/virtualenvs/Traceback (most recent call last):
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/engine/base.py&quot;, line 1964, in _exec_single_context
    self.dialect.do_execute(
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/engine/default.py&quot;, line 747, in do_execute
    cursor.execute(statement, parameters)
psycopg2.errors.UndefinedObject: unrecognized configuration parameter &quot;standard_conforming_strings&quot;
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File &quot;/home/username/Downloads/pycharm-2022.3.2/plugins/python/helpers/pydev/pydevconsole.py&quot;, line 364, in runcode
    coro = func()
  File &quot;&lt;input&gt;&quot;, line 1, in &lt;module&gt;
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/orm/query.py&quot;, line 2715, in all
    return self._iter().all()  # type: ignore
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/orm/query.py&quot;, line 2875, in _iter
    result: Union[ScalarResult[_T], Result[_T]] = self.session.execute(
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/orm/session.py&quot;, line 2229, in execute
    return self._execute_internal(
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/orm/session.py&quot;, line 2114, in _execute_internal
    conn = self._connection_for_bind(bind)
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/orm/session.py&quot;, line 1981, in _connection_for_bind
    return trans._connection_for_bind(engine, execution_options)
  File &quot;&lt;string&gt;&quot;, line 2, in _connection_for_bind
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/orm/state_changes.py&quot;, line 137, in _go
    ret_value = fn(self, *arg, **kw)
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/orm/session.py&quot;, line 1108, in _connection_for_bind
    conn = bind.connect()
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/engine/base.py&quot;, line 3245, in connect
    return self._connection_cls(self)
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/engine/base.py&quot;, line 145, in __init__
    self._dbapi_connection = engine.raw_connection()
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/engine/base.py&quot;, line 3269, in raw_connection
    return self.pool.connect()
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/pool/base.py&quot;, line 452, in connect
    return _ConnectionFairy._checkout(self)
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/pool/base.py&quot;, line 1255, in _checkout
    fairy = _ConnectionRecord.checkout(pool)
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/pool/base.py&quot;, line 716, in checkout
    rec = pool._do_get()
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/pool/impl.py&quot;, line 168, in _do_get
    with util.safe_reraise():
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/util/langhelpers.py&quot;, line 147, in __exit__
    raise exc_value.with_traceback(exc_tb)
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/pool/impl.py&quot;, line 166, in _do_get
    return self._create_connection()
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/pool/base.py&quot;, line 393, in _create_connection
    return _ConnectionRecord(self)
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/pool/base.py&quot;, line 678, in __init__
    self.__connect()
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/pool/base.py&quot;, line 916, in __connect
    )._exec_w_sync_on_first_run(self.dbapi_connection, self)
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/event/attr.py&quot;, line 473, in _exec_w_sync_on_first_run
    self(*args, **kw)
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/event/attr.py&quot;, line 487, in __call__
    fn(*args, **kw)
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/util/langhelpers.py&quot;, line 1912, in go
    return once_fn(*arg, **kw)
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/engine/create.py&quot;, line 746, in first_connect
    dialect.initialize(c)
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/dialects/postgresql/psycopg2.py&quot;, line 654, in initialize
    super().initialize(connection)
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/dialects/postgresql/base.py&quot;, line 3028, in initialize
    std_string = connection.exec_driver_sql(
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/engine/base.py&quot;, line 1772, in exec_driver_sql
    ret = self._execute_context(
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/engine/base.py&quot;, line 1842, in _execute_context
    return self._exec_single_context(
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/engine/base.py&quot;, line 1983, in _exec_single_context
    self._handle_dbapi_exception(
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/engine/base.py&quot;, line 2325, in _handle_dbapi_exception
    raise sqlalchemy_exception.with_traceback(exc_info[2]) from e
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/engine/base.py&quot;, line 1964, in _exec_single_context
    self.dialect.do_execute(
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/engine/default.py&quot;, line 747, in do_execute
    cursor.execute(statement, parameters)
sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedObject) unrecognized configuration parameter &quot;standard_conforming_strings&quot;
[SQL: show standard_conforming_strings]
(Background on this error at: https://sqlalche.me/e/20/f405)-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/orm/session.py&quot;, line 1108, in _connection_for_bind
    conn = bind.connect()
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/engine/base.py&quot;, line 3245, in connect
    return self._connection_cls(self)
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/engine/base.py&quot;, line 145, in __init__
    self._dbapi_connection = engine.raw_connection()
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/engine/base.py&quot;, line 3269, in raw_connection
    return self.pool.connect()
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/pool/base.py&quot;, line 452, in connect
    return _ConnectionFairy._checkout(self)
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/pool/base.py&quot;, line 1255, in _checkout
    fairy = _ConnectionRecord.checkout(pool)
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/pool/base.py&quot;, line 716, in checkout
    rec = pool._do_get()
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/pool/impl.py&quot;, line 168, in _do_get
    with util.safe_reraise():
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/util/langhelpers.py&quot;, line 147, in __exit__
    raise exc_value.with_traceback(exc_tb)
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/pool/impl.py&quot;, line 166, in _do_get
    return self._create_connection()
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/pool/base.py&quot;, line 393, in _create_connection
    return _ConnectionRecord(self)
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/pool/base.py&quot;, line 678, in __init__
    self.__connect()
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/pool/base.py&quot;, line 916, in __connect
    )._exec_w_sync_on_first_run(self.dbapi_connection, self)
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/event/attr.py&quot;, line 473, in _exec_w_sync_on_first_run
    self(*args, **kw)
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/event/attr.py&quot;, line 487, in __call__
    fn(*args, **kw)
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/util/langhelpers.py&quot;, line 1912, in go
    return once_fn(*arg, **kw)
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/engine/create.py&quot;, line 746, in first_connect
    dialect.initialize(c)
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/dialects/postgresql/psycopg2.py&quot;, line 654, in initialize
    super().initialize(connection)
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/dialects/postgresql/base.py&quot;, line 3028, in initialize
    std_string = connection.exec_driver_sql(
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/engine/base.py&quot;, line 1772, in exec_driver_sql
    ret = self._execute_context(
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/engine/base.py&quot;, line 1842, in _execute_context
    return self._exec_single_context(
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/engine/base.py&quot;, line 1983, in _exec_single_context
    self._handle_dbapi_exception(
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/engine/base.py&quot;, line 2325, in _handle_dbapi_exception
    raise sqlalchemy_exception.with_traceback(exc_info[2]) from e
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/engine/base.py&quot;, line 1964, in _exec_single_context
    self.dialect.do_execute(
  File &quot;/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/engine/default.py&quot;, line 747, in do_execute
    cursor.execute(statement, parameters)
sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedObject) unrecognized configuration parameter &quot;standard_conforming_strings&quot;
[SQL: show standard_conforming_strings]
(Background on this error at: https://sqlalche.me/e/20/f405)"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1964, in _exec_single_context
    self.dialect.do_execute(
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/engine/default.py", line 747, in do_execute
    cursor.execute(statement, parameters)
psycopg2.errors.UndefinedObject: unrecognized configuration parameter "standard_conforming_strings"
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "/home/username/Downloads/pycharm-2022.3.2/plugins/python/helpers/pydev/pydevconsole.py", line 364, in runcode
    coro = func()
  File "&lt;input&gt;", line 1, in &lt;module&gt;
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/orm/query.py", line 2715, in all
    return self._iter().all()  # type: ignore
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/orm/query.py", line 2875, in _iter
    result: Union[ScalarResult[_T], Result[_T]] = self.session.execute(
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/orm/session.py", line 2229, in execute
    return self._execute_internal(
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/orm/session.py", line 2114, in _execute_internal
    conn = self._connection_for_bind(bind)
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/orm/session.py", line 1981, in _connection_for_bind
    return trans._connection_for_bind(engine, execution_options)
  File "&lt;string&gt;", line 2, in _connection_for_bind
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/orm/state_changes.py", line 137, in _go
    ret_value = fn(self, *arg, **kw)
  File "/home/username/.local/share/virtualenvs/Traceback (most recent call last):
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1964, in _exec_single_context
    self.dialect.do_execute(
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/engine/default.py", line 747, in do_execute
    cursor.execute(statement, parameters)
psycopg2.errors.UndefinedObject: unrecognized configuration parameter "standard_conforming_strings"
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "/home/username/Downloads/pycharm-2022.3.2/plugins/python/helpers/pydev/pydevconsole.py", line 364, in runcode
    coro = func()
  File "&lt;input&gt;", line 1, in &lt;module&gt;
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/orm/query.py", line 2715, in all
    return self._iter().all()  # type: ignore
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/orm/query.py", line 2875, in _iter
    result: Union[ScalarResult[_T], Result[_T]] = self.session.execute(
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/orm/session.py", line 2229, in execute
    return self._execute_internal(
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/orm/session.py", line 2114, in _execute_internal
    conn = self._connection_for_bind(bind)
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/orm/session.py", line 1981, in _connection_for_bind
    return trans._connection_for_bind(engine, execution_options)
  File "&lt;string&gt;", line 2, in _connection_for_bind
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/orm/state_changes.py", line 137, in _go
    ret_value = fn(self, *arg, **kw)
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/orm/session.py", line 1108, in _connection_for_bind
    conn = bind.connect()
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 3245, in connect
    return self._connection_cls(self)
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 145, in __init__
    self._dbapi_connection = engine.raw_connection()
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 3269, in raw_connection
    return self.pool.connect()
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 452, in connect
    return _ConnectionFairy._checkout(self)
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 1255, in _checkout
    fairy = _ConnectionRecord.checkout(pool)
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 716, in checkout
    rec = pool._do_get()
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/pool/impl.py", line 168, in _do_get
    with util.safe_reraise():
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/util/langhelpers.py", line 147, in __exit__
    raise exc_value.with_traceback(exc_tb)
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/pool/impl.py", line 166, in _do_get
    return self._create_connection()
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 393, in _create_connection
    return _ConnectionRecord(self)
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 678, in __init__
    self.__connect()
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 916, in __connect
    )._exec_w_sync_on_first_run(self.dbapi_connection, self)
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/event/attr.py", line 473, in _exec_w_sync_on_first_run
    self(*args, **kw)
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/event/attr.py", line 487, in __call__
    fn(*args, **kw)
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/util/langhelpers.py", line 1912, in go
    return once_fn(*arg, **kw)
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/engine/create.py", line 746, in first_connect
    dialect.initialize(c)
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/dialects/postgresql/psycopg2.py", line 654, in initialize
    super().initialize(connection)
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/dialects/postgresql/base.py", line 3028, in initialize
    std_string = connection.exec_driver_sql(
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1772, in exec_driver_sql
    ret = self._execute_context(
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1842, in _execute_context
    return self._exec_single_context(
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1983, in _exec_single_context
    self._handle_dbapi_exception(
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 2325, in _handle_dbapi_exception
    raise sqlalchemy_exception.with_traceback(exc_info[2]) from e
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1964, in _exec_single_context
    self.dialect.do_execute(
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/engine/default.py", line 747, in do_execute
    cursor.execute(statement, parameters)
sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedObject) unrecognized configuration parameter "standard_conforming_strings"
[SQL: show standard_conforming_strings]
(Background on this error at: https://sqlalche.me/e/20/f405)-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/orm/session.py", line 1108, in _connection_for_bind
    conn = bind.connect()
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 3245, in connect
    return self._connection_cls(self)
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 145, in __init__
    self._dbapi_connection = engine.raw_connection()
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 3269, in raw_connection
    return self.pool.connect()
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 452, in connect
    return _ConnectionFairy._checkout(self)
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 1255, in _checkout
    fairy = _ConnectionRecord.checkout(pool)
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 716, in checkout
    rec = pool._do_get()
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/pool/impl.py", line 168, in _do_get
    with util.safe_reraise():
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/util/langhelpers.py", line 147, in __exit__
    raise exc_value.with_traceback(exc_tb)
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/pool/impl.py", line 166, in _do_get
    return self._create_connection()
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 393, in _create_connection
    return _ConnectionRecord(self)
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 678, in __init__
    self.__connect()
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 916, in __connect
    )._exec_w_sync_on_first_run(self.dbapi_connection, self)
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/event/attr.py", line 473, in _exec_w_sync_on_first_run
    self(*args, **kw)
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/event/attr.py", line 487, in __call__
    fn(*args, **kw)
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/util/langhelpers.py", line 1912, in go
    return once_fn(*arg, **kw)
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/engine/create.py", line 746, in first_connect
    dialect.initialize(c)
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/dialects/postgresql/psycopg2.py", line 654, in initialize
    super().initialize(connection)
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/dialects/postgresql/base.py", line 3028, in initialize
    std_string = connection.exec_driver_sql(
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1772, in exec_driver_sql
    ret = self._execute_context(
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1842, in _execute_context
    return self._exec_single_context(
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1983, in _exec_single_context
    self._handle_dbapi_exception(
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 2325, in _handle_dbapi_exception
    raise sqlalchemy_exception.with_traceback(exc_info[2]) from e
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1964, in _exec_single_context
    self.dialect.do_execute(
  File "/home/username/.local/share/virtualenvs/project01-Z0F7Zsx7/lib/python3.10/site-packages/sqlalchemy/engine/default.py", line 747, in do_execute
    cursor.execute(statement, parameters)
sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedObject) unrecognized configuration parameter "standard_conforming_strings"
[SQL: show standard_conforming_strings]
(Background on this error at: https://sqlalche.me/e/20/f405)
</code></pre></div>
<h3 dir="auto">Additional context</h3>
<p dir="auto">Downgrading to 1.4.46 has provided a workaround</p>