Re: in BeginCopyTo make materialized view using COPY TO instead of COPY (query). - Mailing list pgsql-hackers

From newtglobal postgresql_contributors
Subject Re: in BeginCopyTo make materialized view using COPY TO instead of COPY (query).
Date
Msg-id 174184863169.294107.2193231434852582080.pgcf@coridan.postgresql.org
Whole thread Raw
In response to in BeginCopyTo make materialized view using COPY TO instead of COPY (query).  (jian he <jian.universality@gmail.com>)
List pgsql-hackers
The following review has been posted through the commitfest application:
make installcheck-world:  not tested
Implements feature:       not tested
Spec compliant:           not tested
Documentation:            not tested

Hi,
Tested the latest patch that allows direct `COPY` operations on Materialized Views, removing the need for `COPY (SELECT
...)`.This enhancement reduces query overhead, improving performance by **4–5%**.  
 
Example:  
Previous approach: 
COPY (SELECT * FROM staff_summary) TO STDOUT WITH CSV HEADER;
Optimized approach:  
COPY staff_summary TO STDOUT WITH CSV HEADER;
Performance tests were conducted using a Materialized View containing around 80,000 records, confirming that the new
approachis faster and more efficient for exporting data.
 

Regards,
Newt Global PostgreSQL Contributors

pgsql-hackers by date:

Previous
From: Ajin Cherian
Date:
Subject: Re: Proposal: Filter irrelevant change before reassemble transactions during logical decoding
Next
From: newtglobal postgresql_contributors
Date:
Subject: Re: Add XMLNamespaces to XMLElement