<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Unable to Connect to a PostgreSQL Database Named &amp;quot;postgres&amp;quot; with ArcGIS Pro and arcpy in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/unable-to-connect-to-a-postgresql-database-named/m-p/1542434#M9310</link>
    <description>&lt;P&gt;Are you able to connect to other PostgreSQL databases? The documentation doesn't mention any restrictions w.r.t the database name, other than it should be in lowercase.&lt;/P&gt;&lt;P&gt;Not really a Python expert, but I tried creating a simple connection and copy the associated code. See if this helps:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.management.CreateDatabaseConnection(
    out_folder_path=r"C:\temp",
    out_name="test.sde",
    database_platform="POSTGRESQL",
    instance="hostname",
    account_authentication="DATABASE_AUTH",
    username="username",
    password="password",
    save_user_pass="SAVE_USERNAME",
    database="database_name",
    schema="",
    version_type="TRANSACTIONAL",
    version="",
    date=None,
    auth_type="",
    project_id="",
    default_dataset="",
    refresh_token=None,
    key_file=None,
    role="",
    warehouse="",
    advanced_options=""
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Sep 2024 13:05:40 GMT</pubDate>
    <dc:creator>Asrujit_SenGupta</dc:creator>
    <dc:date>2024-09-25T13:05:40Z</dc:date>
    <item>
      <title>Unable to Connect to a PostgreSQL Database Named "postgres" with ArcGIS Pro and arcpy</title>
      <link>https://community.esri.com/t5/geodatabase-questions/unable-to-connect-to-a-postgresql-database-named/m-p/1542267#M9309</link>
      <description>&lt;P&gt;hello:&lt;/P&gt;&lt;P&gt;I'm trying to connect to a PostgreSQL database named "&lt;STRONG&gt;postgres&lt;/STRONG&gt;", but ArcGIS Pro and arcpy don't seem to like this name.&lt;/P&gt;&lt;P&gt;Is there an alternative?&lt;/P&gt;&lt;P&gt;I don't want to create another database named "toto" &lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;, for example, nor synchronization processes, etc. Here is the code I'm using as well as the error I'm getting:&lt;/P&gt;&lt;PRE&gt;    arcpy.management.CreateDatabaseConnection(
        out_folder_path=OUT_FOLDER_PATH,
        out_name=OUT_NAME,
        database_platform="POSTGRESQL",
        instance=INSTANCE,
        account_authentication=ACCOUNT_AUTHENTICATION,
        username=USERNAME,
        password=PASSWORD,
        save_user_pass =SAVE_USER_PASS,
        database='postgres',
    )&lt;/PRE&gt;&lt;P&gt;000800: The value is not a member of &amp;lt;value&amp;gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 00:20:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/unable-to-connect-to-a-postgresql-database-named/m-p/1542267#M9309</guid>
      <dc:creator>HatimKhayroun</dc:creator>
      <dc:date>2024-09-25T00:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Connect to a PostgreSQL Database Named "postgres" with ArcGIS Pro and arcpy</title>
      <link>https://community.esri.com/t5/geodatabase-questions/unable-to-connect-to-a-postgresql-database-named/m-p/1542434#M9310</link>
      <description>&lt;P&gt;Are you able to connect to other PostgreSQL databases? The documentation doesn't mention any restrictions w.r.t the database name, other than it should be in lowercase.&lt;/P&gt;&lt;P&gt;Not really a Python expert, but I tried creating a simple connection and copy the associated code. See if this helps:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.management.CreateDatabaseConnection(
    out_folder_path=r"C:\temp",
    out_name="test.sde",
    database_platform="POSTGRESQL",
    instance="hostname",
    account_authentication="DATABASE_AUTH",
    username="username",
    password="password",
    save_user_pass="SAVE_USERNAME",
    database="database_name",
    schema="",
    version_type="TRANSACTIONAL",
    version="",
    date=None,
    auth_type="",
    project_id="",
    default_dataset="",
    refresh_token=None,
    key_file=None,
    role="",
    warehouse="",
    advanced_options=""
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 13:05:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/unable-to-connect-to-a-postgresql-database-named/m-p/1542434#M9310</guid>
      <dc:creator>Asrujit_SenGupta</dc:creator>
      <dc:date>2024-09-25T13:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Connect to a PostgreSQL Database Named "postgres" with ArcGIS Pro and arcpy</title>
      <link>https://community.esri.com/t5/geodatabase-questions/unable-to-connect-to-a-postgresql-database-named/m-p/1543191#M9312</link>
      <description>&lt;P&gt;It's not exactly best practice to make use of the master database for anything GIS. In fact, it's pretty close to &lt;EM&gt;worst&lt;/EM&gt; practice. It wouldn't surprise if it is not permitted (and if it is, I would file a Defect to have that loophole closed).&lt;/P&gt;
&lt;P&gt;Pretty much any training in database technology is going to tell you to create a new logical storage, a database or databases to house your data (leveraging the storage), and additional user logins and group logins, and schemas in the databases to match and/or correspond to the logins.&lt;/P&gt;
&lt;P&gt;Creating user data in reserved admin databases presents an unnecessary risk to database stability.&amp;nbsp; Creating a "toto" database for your non-Kansas data would in fact be best practice, and I encourage you to do so.&lt;/P&gt;
&lt;P&gt;- V&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 19:23:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/unable-to-connect-to-a-postgresql-database-named/m-p/1543191#M9312</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2024-09-26T19:23:06Z</dc:date>
    </item>
  </channel>
</rss>

