pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedWhy no CREATE TEMP MATERIALIZED VIEW ?
5+ messages / 5 participants
[nested] [flat]
* Why no CREATE TEMP MATERIALIZED VIEW ?
@ 2019-07-16 16:29 Ivan Voras <ivoras@gmail.com>
2019-07-16 16:56 ` Re: Why no CREATE TEMP MATERIALIZED VIEW ? David G. Johnston <david.g.johnston@gmail.com>
2019-07-17 02:35 ` Re: Why no CREATE TEMP MATERIALIZED VIEW ? Alvaro Herrera <alvherre@2ndquadrant.com>
0 siblings, 2 replies; 5+ messages in thread
From: Ivan Voras @ 2019-07-16 16:29 UTC (permalink / raw)
To: pgsql-general
Hello,
Out of curiosity, since there's CREATE TEMP VIEW, any particular reason
there's no CREATE TEMP MATERIALIZED VIEW?
Seems like it could be similar to a temp table.
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Why no CREATE TEMP MATERIALIZED VIEW ?
2019-07-16 16:29 Why no CREATE TEMP MATERIALIZED VIEW ? Ivan Voras <ivoras@gmail.com>
@ 2019-07-16 16:56 ` David G. Johnston <david.g.johnston@gmail.com>
2019-07-16 17:57 ` Re: Why no CREATE TEMP MATERIALIZED VIEW ? Ron <ronljohnsonjr@gmail.com>
1 sibling, 1 reply; 5+ messages in thread
From: David G. Johnston @ 2019-07-16 16:56 UTC (permalink / raw)
To: Ivan Voras <ivoras@gmail.com>; +Cc: pgsql-general
On Tue, Jul 16, 2019 at 9:29 AM Ivan Voras <ivoras@gmail.com> wrote:
> Out of curiosity, since there's CREATE TEMP VIEW, any particular reason
> there's no CREATE TEMP MATERIALIZED VIEW?
>
> Seems like it could be similar to a temp table.
>
Probably a lack (absence) of use cases resulted in people deciding (or
defaulting) to not spend any effort in that area. Incremental maintenance
and refresh seem considerably less useful when only the current session can
see the table. Temp views and temp tables seem to provide sufficient
options in the session lifetime space.
David J.
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Why no CREATE TEMP MATERIALIZED VIEW ?
2019-07-16 16:29 Why no CREATE TEMP MATERIALIZED VIEW ? Ivan Voras <ivoras@gmail.com>
2019-07-16 16:56 ` Re: Why no CREATE TEMP MATERIALIZED VIEW ? David G. Johnston <david.g.johnston@gmail.com>
@ 2019-07-16 17:57 ` Ron <ronljohnsonjr@gmail.com>
2019-07-16 18:06 ` Re: Why no CREATE TEMP MATERIALIZED VIEW ? Adam Brusselback <adambrusselback@gmail.com>
0 siblings, 1 reply; 5+ messages in thread
From: Ron @ 2019-07-16 17:57 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
On 7/16/19 11:56 AM, David G. Johnston wrote:
> On Tue, Jul 16, 2019 at 9:29 AM Ivan Voras <ivoras@gmail.com
> <mailto:ivoras@gmail.com>> wrote:
>
> Out of curiosity, since there's CREATE TEMP VIEW, any particular
> reason there's no CREATE TEMP MATERIALIZED VIEW?
>
> Seems like it could be similar to a temp table.
>
>
> Probably a lack (absence) of use cases resulted in people deciding (or
> defaulting) to not spend any effort in that area. Incremental maintenance
> and refresh seem considerably less useful when only the current session
> can see the table. Temp views and temp tables seem to provide sufficient
> options in the session lifetime space.
How different is a "*temp* materialized view" from a regular view?
--
Angular momentum makes the world go 'round.
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Why no CREATE TEMP MATERIALIZED VIEW ?
2019-07-16 16:29 Why no CREATE TEMP MATERIALIZED VIEW ? Ivan Voras <ivoras@gmail.com>
2019-07-16 16:56 ` Re: Why no CREATE TEMP MATERIALIZED VIEW ? David G. Johnston <david.g.johnston@gmail.com>
2019-07-16 17:57 ` Re: Why no CREATE TEMP MATERIALIZED VIEW ? Ron <ronljohnsonjr@gmail.com>
@ 2019-07-16 18:06 ` Adam Brusselback <adambrusselback@gmail.com>
0 siblings, 0 replies; 5+ messages in thread
From: Adam Brusselback @ 2019-07-16 18:06 UTC (permalink / raw)
To: Ron <ronljohnsonjr@gmail.com>; +Cc: pgsql-general <pgsql-general@lists.postgresql.org>
> How different is a "*temp* materialized view" from a regular view?
If it existed, it would be useful for cases when you need to reference that
view in multiple queries in the same session. I've gotten around this by
just using temp tables.
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Why no CREATE TEMP MATERIALIZED VIEW ?
2019-07-16 16:29 Why no CREATE TEMP MATERIALIZED VIEW ? Ivan Voras <ivoras@gmail.com>
@ 2019-07-17 02:35 ` Alvaro Herrera <alvherre@2ndquadrant.com>
1 sibling, 0 replies; 5+ messages in thread
From: Alvaro Herrera @ 2019-07-17 02:35 UTC (permalink / raw)
To: Ivan Voras <ivoras@gmail.com>; +Cc: pgsql-general
On 2019-Jul-16, Ivan Voras wrote:
> Hello,
>
> Out of curiosity, since there's CREATE TEMP VIEW, any particular reason
> there's no CREATE TEMP MATERIALIZED VIEW?
Because it hasn't been implemented. There is a patch, but it's not
done. See this thread:
https://postgr.es/m/CAKLmikNoQR4ZNg_wt=-hU-uUxV2cXVdveeRsMFjr2SAopVxDxw@mail.gmail.com
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2019-07-17 02:35 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-07-16 16:29 Why no CREATE TEMP MATERIALIZED VIEW ? Ivan Voras <ivoras@gmail.com>
2019-07-16 16:56 ` David G. Johnston <david.g.johnston@gmail.com>
2019-07-16 17:57 ` Ron <ronljohnsonjr@gmail.com>
2019-07-16 18:06 ` Adam Brusselback <adambrusselback@gmail.com>
2019-07-17 02:35 ` Alvaro Herrera <alvherre@2ndquadrant.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox