Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6794169
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:11:22+00:00 2026-05-26T18:11:22+00:00

If I create a temporary table inside of a transaction, populate it with the

  • 0

If I create a temporary table inside of a transaction, populate it with the COPY command, and use the ON COMMIT DROP option, does the table data still get written to the WAL and get replicated to the slave database? I’m doing a fairly large import, doing some work using that data, and then I don’t need it anymore. I don’t want to rollback the whole transaction because I want to keep the work that was done using the source data, but I won’t need the source data again and so I don’t want to waste time and bandwidth replicating and deleting it on the slave.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T18:11:22+00:00Added an answer on May 26, 2026 at 6:11 pm

    Temporary tables are not WAL-logged in PostgreSQL.

    You might be interested in this article by Robert Haas (PostgreSQL core developer) about unlogged tables – that also clarifies the behavior of temporary tables.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want a stored-procedure to create a temporary table, populate the table with data,
I have a stored procedure inside which I create a temporary table that typically
I was kinda surprised when I saw following: CREATE TEMPORARY TABLE X (ID int)
How do you create a temporary table exactly like a current table in a
I have a string like following: CREATE GLOBAL TEMPORARY TABLE some_temp_table_name or CREATE GLOBAL
I have a sample file like the following: CREATE GLOBAL TEMPORARY TABLE tt_temp_user_11 (
I am looking for a way in Microsoft Access to create a temporary table
Using the .net framework you have the option to create temporary files with Path.GetTempFileName();
I am creating a temp table with a query like this: CREATE TEMPORARY TABLE
I would like to create a temporary table in a Oracle database something like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.