Materialized Views in PostgreSQL

Started by Jean-Michel Pouréover 20 years ago5 messages

Dear friends and all,

Johnathan Gardner did a wonderful job on materialized views:
http://jonathangardner.net/PostgreSQL/materialized_views/matviews.html

Are there any plans to integrate materialized views written in plain C in the
future. This can help gain a lot of time in Web applications.

For example, Web CMS (or even forums) have 99% SELECT queries.
Being able to use materialized view would boost speed.

Kind regards,
Jean-Michel

#2Tino Wildenhain
tino@wildenhain.de
In reply to: Jean-Michel Pouré (#1)
Re: Materialized Views in PostgreSQL

Jean-Michel Pourᅵ schrieb:

Dear friends and all,

Johnathan Gardner did a wonderful job on materialized views:
http://jonathangardner.net/PostgreSQL/materialized_views/matviews.html

Are there any plans to integrate materialized views written in plain C in the
future. This can help gain a lot of time in Web applications.

I fail to see how C would improve the situation here because you just
send queries to the backend in those functions. You can use
the recipes on that page just as they are. If you feel like,
make them a contrib module you can easily apply to a situation.

Not sure how an implemenation "in database" could look like.
Maybe SQL standard reserves something for materialized views
I dont know?

Regards
Tino

#3Josh Berkus
josh@agliodbs.com
In reply to: Jean-Michel Pouré (#1)
Re: Materialized Views in PostgreSQL

Jean-Michel,

Are there any plans to integrate materialized views written in plain C in
the future. This can help gain a lot of time in Web applications.

We actually have some university code implementing materialized view handling
in the planner code. However, I keep not getting around to reviewing &
documenting it.

Jonathan's piece is actually an excellent article on how to implement
mattviews in user-space. Mostly, it just needs to be linked from somewhere
in the PostgreSQL.org pages.

--
Josh Berkus
Aglio Database Solutions
San Francisco

#4Dann Corbit
DCorbit@connx.com
In reply to: Josh Berkus (#3)
Re: Materialized Views in PostgreSQL

-----Original Message-----
From: pgsql-hackers-owner@postgresql.org [mailto:pgsql-hackers-
owner@postgresql.org] On Behalf Of Tino Wildenhain
Sent: Monday, September 12, 2005 3:04 AM
To: jm@poure.com
Cc: pgsql-hackers@postgresql.org
Subject: Re: [HACKERS] Materialized Views in PostgreSQL

Jean-Michel Pouré schrieb:

Dear friends and all,

Johnathan Gardner did a wonderful job on materialized views:
http://jonathangardner.net/PostgreSQL/materialized_views/matviews.html

Are there any plans to integrate materialized views written in plain C

in the

future. This can help gain a lot of time in Web applications.

I fail to see how C would improve the situation here because you just
send queries to the backend in those functions. You can use
the recipes on that page just as they are. If you feel like,
make them a contrib module you can easily apply to a situation.

Not sure how an implemenation "in database" could look like.
Maybe SQL standard reserves something for materialized views
I dont know?

http://research.csc.ncsu.edu/selftune/

I think someone is working on merging this stuff back into the PostgreSQL core. Not sure what the current status is.

Show quoted text

Regards
Tino

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

#5Josh Berkus
josh@agliodbs.com
In reply to: Dann Corbit (#4)
Re: Materialized Views in PostgreSQL

Dann,

http://research.csc.ncsu.edu/selftune/

I think someone is working on merging this stuff back into the PostgreSQL
core.  Not sure what the current status is.

I was in theory working on testing and documentation. Others (better coders
than me) are welcome to take it over, though.

--
Josh Berkus
Aglio Database Solutions
San Francisco