Re: PARALLEL CTAS - Mailing list pgsql-sql

From Shane Borden
Subject Re: PARALLEL CTAS
Date
Msg-id 7BD04D8E-9307-4107-B4D0-4C281390F996@gmail.com
Whole thread Raw
In response to Re: PARALLEL CTAS  (Rob Sargent <robjsargent@gmail.com>)
Responses Re: PARALLEL CTAS
List pgsql-sql
I saw this as an option.  Let’s say you have a million row table.  If you copy from STDIN, do you have to spool the source table to a local file first?  Looking to replace a CTAS thats doing this all within SQL statements now.
---

Thanks,


Shane Borden
sborden76@gmail.com

On Dec 12, 2022, at 12:25 PM, Rob Sargent <robjsargent@gmail.com> wrote:

On 12/12/22 10:13, Shane Borden wrote:
The issue is there are certain performance benefits to be had by doing parallel CTAS operations and when converting from Oracle to PostgreSQL switching to a “COPY” operation isn’t feasible.
---

Thanks,

Today I suspect you're left with something like the following:
- CTAS from source where 1=2 (i.e. table definition via select semantics)
- copy from stdin (filled with intended CTAS select)




pgsql-sql by date:

Previous
From: Rob Sargent
Date:
Subject: Re: PARALLEL CTAS
Next
From: Steve Midgley
Date:
Subject: Re: PARALLEL CTAS