Thread: Query in cache
Hi, I am need help, about subject "Query cache in Postgres". how is it possible to put sql statements cached in postgres ? I did some tests and I can not get even with improved tuning parameters in the postgresql.conf. Regards,
--
|
Attachment
Rogerio Pereira <rogerio.pereira@riosoft.com.br> wrote: > Hi, > > I am need help, about subject "Query cache in Postgres". > how is it possible to put sql statements cached in postgres ? > I did some tests and I can not get even with improved tuning > parameters in the postgresql.conf. No, there isn't something like a query cache. But you can use materialized views, since 9.3. Andreas -- Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect. (Linus Torvalds) "If I was god, I would recompile penguin with --enable-fly." (unknown) Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°
On Mon, Nov 18, 2013 at 02:38:09PM -0200, Rogerio Pereira wrote: > Hi, > > I am need help, about subject "Query cache in Postgres". > how is it possible to put sql statements cached in postgres ? > I did some tests and I can not get even with improved tuning > parameters in the postgresql.conf. > > Regards, > Hi Rogerio, PostgreSQL does not have a query cache. I think you would need to roll your own. Regards, Ken
Hello,
pgpool supports memcache.
Regards
On Monday, November 18, 2013 6:29 PM, Andreas Kretschmer <akretschmer@spamfence.net> wrote:
Rogerio Pereira <rogerio.pereira@riosoft.com.br> wrote:
> Hi,
>
> I am need help, about subject "Query cache in Postgres".
> how is it possible to put sql statements cached in postgres ?
> I did some tests and I can not get even with improved tuning
> parameters in the postgresql.conf.
No, there isn't something like a query cache. But you can use
materialized views, since 9.3.
Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly." (unknown)
Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°
--
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance
> Hi,
>
> I am need help, about subject "Query cache in Postgres".
> how is it possible to put sql statements cached in postgres ?
> I did some tests and I can not get even with improved tuning
> parameters in the postgresql.conf.
No, there isn't something like a query cache. But you can use
materialized views, since 9.3.
Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly." (unknown)
Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°
--
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance
2013/11/18 Rogerio Pereira <rogerio.pereira@riosoft.com.br> > I am need help, about subject "Query cache in Postgres". > how is it possible to put sql statements cached in postgres ? > I did some tests and I can not get even with improved tuning > parameters in the postgresql.conf. Are you talking about prepared statements or about query result caching? If former then you need to look at the PREPARE for execute statement [1], though it is probably implemented in your data adapter, for example like it is in DBD::Pg [2]. Also take a look at the pre_prepare module [3], that can conveniently be used with pgbouncer. If later then there is an extension named pgmemcache [4] that will allow you to interact with memcached directly from postgres, so you could implement cashing in stored functions, for example. However my advice is to use application level caching with memcached in this case, not the database level one. [1] http://www.postgresql.org/docs/9.3/static/sql-prepare.html [2] http://search.cpan.org/dist/DBD-Pg/Pg.pm#prepare [3] https://github.com/dimitri/preprepare [4] https://github.com/ohmu/pgmemcache/ -- Kind regards, Sergey Konoplev PostgreSQL Consultant and DBA http://www.linkedin.com/in/grayhemp +1 (415) 867-9984, +7 (901) 903-0499, +7 (988) 888-1979 gray.ru@gmail.com
On Mon, Nov 18, 2013 at 04:36:20PM -0800, salah jubeh wrote: > Hello, > > pgpool supports memcache. > Regards > Very cool. I had missed that in the release announcement. Regards, Ken
Hi,
Is possible send howto to active 'feature' ?
Regards,
Rogerio
Em 19/11/2013 12:00, ktm@rice.edu escreveu:
Is possible send howto to active 'feature' ?
Regards,
Rogerio
Em 19/11/2013 12:00, ktm@rice.edu escreveu:
On Mon, Nov 18, 2013 at 04:36:20PM -0800, salah jubeh wrote:Hello, pgpool supports memcache. RegardsVery cool. I had missed that in the release announcement. Regards, Ken
--
|
Attachment
Hi.
I'm trying install pgmemcache and occurs error:
pgmemcache.h:29:23: error: sasl/sasl.h: No such file or directory
Exists solution exists to fix to problem?
Version the postgres: 9.3.1 with CentOS
Link reference: http://raghavt.blogspot.com.br/2011/07/pgmemcache-setup-and-usage.html
Regards,
I'm trying install pgmemcache and occurs error:
pgmemcache.h:29:23: error: sasl/sasl.h: No such file or directory
Exists solution exists to fix to problem?
Version the postgres: 9.3.1 with CentOS
Link reference: http://raghavt.blogspot.com.br/2011/07/pgmemcache-setup-and-usage.html
Regards,
--
|
Attachment
Hi,
What is the maximum amount of VM that can be created?
Version 9.3
Tks,
What is the maximum amount of VM that can be created?
Version 9.3
Tks,
--
|
Attachment
Hi, On Wed, 2013-11-20 at 10:36 -0200, Rogerio Pereira wrote: > I'm trying install pgmemcache and occurs error: > > pgmemcache.h:29:23: error: sasl/sasl.h: No such file or directory > > Exists solution exists to fix to problem? You will need to install cyrus-sasl-devel package. Still, I just uploaded the RPM package to yum repo: http://yum.postgresql.org/9.3/redhat/rhel-6-x86_64/repoview/pgmemcache-93.html Regards, -- Devrim GÜNDÜZ Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer Twitter: @DevrimGunduz , @DevrimGunduzTR