<?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: Error when executing an INSERT statement on an External Postgres table from Databricks SQL Edito in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/error-when-executing-an-insert-statement-on-an-external-postgres/m-p/113436#M9261</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/106294"&gt;@Alberto_Umana&lt;/a&gt;,&amp;nbsp;Appreciate your response.&lt;/P&gt;</description>
    <pubDate>Mon, 24 Mar 2025 16:12:50 GMT</pubDate>
    <dc:creator>pankj0510</dc:creator>
    <dc:date>2025-03-24T16:12:50Z</dc:date>
    <item>
      <title>Error when executing an INSERT statement on an External Postgres table from Databricks SQL Editor</title>
      <link>https://community.databricks.com/t5/get-started-discussions/error-when-executing-an-insert-statement-on-an-external-postgres/m-p/113336#M9259</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This is the context of my issue:&lt;/P&gt;&lt;P&gt;I have an AWS RDS Postgres database instance setup. I have also set up a Postgres CONNECTION in Databricks and can view the Postgres tables under a newly created FOREIGN CATALOG in Databricks Unity Catalog.&lt;/P&gt;&lt;P&gt;Using the Databricks SQL editor, I am able to successfully read from these tables with a SELECT statement. But, when I try to execute an INSERT statement in the SQL Editor, I am getting the following error:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The input query contains unsupported data source(s). Only csv, json, avro, delta, kafka, parquet, orc, text, unity_catalog, binaryFile, xml, simplescan, iceberg, mysql, postgresql, sqlserver, redshift, snowflake, sqldw, databricks, bigquery, oracle, salesforce, salesforce_data_cloud, teradata, workday_raas, mongodb data sources are supported on Databricks SQL, and only csv, json, avro, delta, kafka, parquet, orc, text, unity_catalog, binaryFile, xml, simplescan, iceberg data sources are allowed to run DML on Databricks SQL.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I am trying to figure out if it is possible to perform an UPDATE/INSERT into a Postgres table from Databricks?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance !&lt;/P&gt;&lt;P&gt;Pankj&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2025 22:35:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/error-when-executing-an-insert-statement-on-an-external-postgres/m-p/113336#M9259</guid>
      <dc:creator>pankj0510</dc:creator>
      <dc:date>2025-03-21T22:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error when executing an INSERT statement on an External Postgres table from Databricks SQL Edito</title>
      <link>https://community.databricks.com/t5/get-started-discussions/error-when-executing-an-insert-statement-on-an-external-postgres/m-p/113382#M9260</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/154675"&gt;@pankj0510&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;DML for tables is blocked from Databricks SQL, you can only read from DBSQL. I think you can set up a JDBC URL to the Postgres database and use Spark/Pandas DataFrame write methods to insert data&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2025 00:17:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/error-when-executing-an-insert-statement-on-an-external-postgres/m-p/113382#M9260</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2025-03-24T00:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error when executing an INSERT statement on an External Postgres table from Databricks SQL Edito</title>
      <link>https://community.databricks.com/t5/get-started-discussions/error-when-executing-an-insert-statement-on-an-external-postgres/m-p/113436#M9261</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/106294"&gt;@Alberto_Umana&lt;/a&gt;,&amp;nbsp;Appreciate your response.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2025 16:12:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/error-when-executing-an-insert-statement-on-an-external-postgres/m-p/113436#M9261</guid>
      <dc:creator>pankj0510</dc:creator>
      <dc:date>2025-03-24T16:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Error when executing an INSERT statement on an External Postgres table from Databricks SQL Edito</title>
      <link>https://community.databricks.com/t5/get-started-discussions/error-when-executing-an-insert-statement-on-an-external-postgres/m-p/113439#M9262</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/106294"&gt;@Alberto_Umana&lt;/a&gt;,&amp;nbsp;Appreciate your response.&lt;BR /&gt;The use case I am trying to address is this: we are using Unity Catalog to manage access to our Databricks tables. Now that we are introducing some tables in Postgres DB, I want to control the read/write access to these Postgres tables through Unity Catalog as well.&amp;nbsp;&lt;BR /&gt;If I could control the access of the external tables in Unity Catalog, then I do not have implement separate security in AWS RDS Postgres using IAM.&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the suggested approach of Spark/Pandas DataFrame, will it be able to leverage the Unity Catalog to manage the 'Write' access?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2025 16:53:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/error-when-executing-an-insert-statement-on-an-external-postgres/m-p/113439#M9262</guid>
      <dc:creator>pankj0510</dc:creator>
      <dc:date>2025-03-24T16:53:31Z</dc:date>
    </item>
  </channel>
</rss>

