Re: [GENERAL] DB become enormous with continuos insert and update

2010-10-26 Thread Gabriele Bartolini
, Gabriele -- Gabriele Bartolini - 2ndQuadrant Italia PostgreSQL Training, Services and Support gabriele.bartol...@2ndquadrant.it | www.2ndQuadrant.it -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] DB become enormous with continuos insert and update

2010-10-26 Thread Gabriele Bartolini
). It seems a bug It is definitely not a bug, but a desired behaviour deriving from the MVCC architecture. Ciao, Gabriele -- Gabriele Bartolini - 2ndQuadrant Italia PostgreSQL Training, Services and Support gabriele.bartol...@2ndquadrant.it | www.2ndQuadrant.it -- Sent via pgsql-general

Re: [GENERAL] DB become enormous with continuos insert and update

2010-10-28 Thread Gabriele Bartolini
never replied to that. Next time, please post the version you are using and possibly the operating system. > It's incredible, DB don't change dimension even after 1 million insert and > update. > CPUs average load drastically is fallen down! Glad you fixed it. Ciao

Re: [GENERAL] Enable automatic scheduled backups

2010-10-30 Thread Gabriele Bartolini
Il 30/10/10 10:52, RP Khare ha scritto: I want pgsql to take automatic scheduled backup of the database every 30 minutes. How to do this? On Unix like systems, you can set a crontab that executes pg_dump every 30 minutes. -- Gabriele Bartolini - 2ndQuadrant Italia PostgreSQL Training

Re: [GENERAL] Running postgres with a different user/group

2010-11-03 Thread Gabriele Bartolini
to psql or by setting the PGUSER environment variable. > I can rebuild from sources, if needed. I believe there is no need to do that. Ciao, Gabriele -- Gabriele Bartolini - 2ndQuadrant Italia PostgreSQL Training, Services and Support gabriele.bartol...@2ndquadrant.it - www.2ndQuadrant.it

Re: [GENERAL] Running postgres with a different user/group

2010-11-03 Thread Gabriele Bartolini
the right port and host (or Unix socket) to psql. Ciao, Gabriele -- Gabriele Bartolini - 2ndQuadrant Italia PostgreSQL Training, Services and Support gabriele.bartol...@2ndquadrant.it - www.2ndQuadrant.it -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes t

Re: [GENERAL] when postgres failed to recover after the crash...

2010-11-14 Thread Gabriele Bartolini
always a good thing. Ciao, Gabriele -- Gabriele Bartolini - 2ndQuadrant Italia PostgreSQL Training, Services and Support gabriele.bartol...@2ndquadrant.it | www.2ndQuadrant.it -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http:

Re: [GENERAL] Can the query planner create indexes?

2010-12-21 Thread Gabriele Bartolini
on High Performance (which you can find from here: http://www.postgresql.org/docs/books/) Merry Christmas to you too! Cheers, Gabriele -- Gabriele Bartolini - 2ndQuadrant Italia PostgreSQL Training, Services and Support gabriele.bartol...@2ndquadrant.it - www.2ndQuadrant.it -- Sent vi

Re: [GENERAL] Can the query planner create indexes?

2010-12-21 Thread Gabriele Bartolini
-2010-td3288085.html [1] http://archives.postgresql.org/pgsql-hackers/2010-12/msg00087.php [2] I totally missed this. Thanks for posting it. Cheers, Gabriele -- Gabriele Bartolini - 2ndQuadrant Italia PostgreSQL Training, Services and Support gabriele.bartol...@2ndquadrant.it - www.2ndQuad

Re: [GENERAL] writing a plpgsql query for the first time

2011-03-16 Thread Gabriele Bartolini
from record_table r where r.id > 2; Have a look on the documentation about this kind of issues, which has been improved from version 9 (http://www.postgresql.org/docs/9.0/interactive/plpgsql-implementation.html#PLPGSQL-VAR-SUBST). Cheers, Gabriele -- Gabriele Bartolini - 2ndQuadrant Ita

Re: [GENERAL] Database "gnu make" equivalent

2011-04-05 Thread Gabriele Bartolini
understood your request. Thanks. Cheers, Gabriele -- Gabriele Bartolini - 2ndQuadrant Italia PostgreSQL Training, Services and Support gabriele.bartol...@2ndquadrant.it - www.2ndQuadrant.it -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your

Re: [GENERAL] orafce

2013-03-13 Thread Gabriele Bartolini
quot;. The problem is that it seems only available for Postgres 9.1, while we have obviously started with the latest release. Does anybody know how to compile orafce for 9.2 or if there is any other solution to add some basic oracle functions (dual table, TRUNC, ecc...)?? Thanks a lot, Paolo --

Re: [GENERAL] Backup advice

2013-04-10 Thread Gabriele Bartolini
ng it. Cheers, Gabriele -- Gabriele Bartolini - 2ndQuadrant Italia PostgreSQL Training, Services and Support gabriele.bartol...@2ndquadrant.it - www.2ndQuadrant.it -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresq

Re: [GENERAL] Recovery.conf and PITR

2013-08-09 Thread Gabriele Bartolini
get will be included in the recovered server. For further information, I suggest you look at: http://www.postgresql.org/docs/9.2/static/recovery-target-settings.html Cheers, Gabriele -- Gabriele Bartolini - 2ndQuadrant Italia PostgreSQL Training, Services and Support gabriele.bartol...@

Re: [GENERAL] pgsql and asciidoc output

2014-02-11 Thread Gabriele Bartolini
I second Bruce. I massively use asciidoc. I guess adding both asciidoc and md would not be too hard. Thanks, Gabriele -- Gabriele Bartolini - 2ndQuadrant Italia PostgreSQL Training, Services and Support gabriele.bartol...@2ndquadrant.it | www.2ndQuadrant.it 2014-02-12 6:02 GMT+01:00 Pavel

Re: [GENERAL] Need to replace SAN, best method with least downtime? (8.4.4)

2011-04-24 Thread Gabriele Bartolini
/support/professional_support) and let them do the job for you. Probably cheaper and safer. Cheers, Gabriele -- Gabriele Bartolini - 2ndQuadrant Italia PostgreSQL Training, Services and Support gabriele.bartol...@2ndquadrant.it | www.2ndQuadrant.it -- Sent via pgsql-general mailing list (pgsql

Re: [GENERAL] multiple group by on same table

2011-05-04 Thread Gabriele Bartolini
7;t help that much, given that we have a fairly good storage? Just trying to get some ideas before starting testing (table will be 5M rows, where some of the group by select could return 3-400K groups) Leonardo -- Gabriele Bartolini - 2ndQuadrant Italia PostgreSQL Training, Services and

Re: [GENERAL] Streaming replication info

2011-05-09 Thread Gabriele Bartolini
writing (http://projects.2ndquadrant.com/repmgr) which should make this kind of things much easier for you. Cheers, Gabriele -- Gabriele Bartolini - 2ndQuadrant Italia PostgreSQL Training, Services and Support gabriele.bartol...@2ndquadrant.it | www.2ndQuadrant.it -- Sent via pgsql

Re: [GENERAL] Postgres or Greenplum

2011-06-08 Thread Gabriele Bartolini
ilability and Replication conference. Cheers, Gabriele -- Gabriele Bartolini - 2ndQuadrant Italia PostgreSQL Training, Services and Support gabriele.bartol...@2ndquadrant.it - www.2ndQuadrant.it -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes t

Re: [GENERAL] suggestion for backup

2012-05-20 Thread Gabriele Bartolini
list of objects for pg_dump. It may sound unrelated at first, but if you have PostgreSQL 9.1 this use case matches very well with the new EXTENSION framework. Please look at the CREATE EXTENSION command and evaluate it. Cheers, Gabriele -- Gabriele Bartolini - 2ndQuadrant Italia PostgreSQL

Re: [GENERAL] Smaller multiple tables or one large table?

2012-06-15 Thread Gabriele Bartolini
seful to manage very large data sets. What you are looking for is called 'partitioning' (horizontal partitioning). I suggest that you read this chapter: http://www.postgresql.org/docs/9.1/static/ddl-partitioning.html Cheers, Gabriele -- Gabriele Bartolini - 2ndQuadrant Italia Post

Re: [GENERAL] BI tools and postgresql

2012-07-26 Thread Gabriele Bartolini
s you more flexibility and allows you to change a tool for a specific component in the future without changing the whole architecture. Of course, I take it for granted that you have already thought about the data warehouse layer (in case you have one). Cheers, Gabriele -- Gabriele

Re: [GENERAL] warnings about invalid "search_path"

2012-08-07 Thread Gabriele Bartolini
; schema. Please let me have more information if my assumption were wrong. Cheers, Gabriele Tip/Note: by default, search_path is set to search in the "$user" and public schemas. Therefore, if you connect using the "system_data" user, you do not need to force searching

Re: [GENERAL] foreign key from array element

2012-09-18 Thread Gabriele Bartolini
r and give feedback. Thank you. Cheers, Gabriele -- Gabriele Bartolini - 2ndQuadrant Italia PostgreSQL Training, Services and Support gabriele.bartol...@2ndquadrant.it | www.2ndQuadrant.it -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to you

Re: [GENERAL] foreign key from array element

2012-09-19 Thread Gabriele Bartolini
Array-ELEMENT-foreign-key-v1-refreshed.patch.bz2 | patch -p1 Then regular configure and make procedures (http://www.postgresql.org/docs/current/interactive/install-procedure.html) Useful link too: http://wiki.postgresql.org/wiki/Developer_FAQ Hope this helps. Thanks, Gabriele -- Gabriele

Re: [GENERAL] foreign key from array element

2012-09-20 Thread Gabriele Bartolini
eally much appreciated. Cheers, Gabriel -- Gabriele Bartolini - 2ndQuadrant Italia PostgreSQL Training, Services and Support gabriele.bartol...@2ndquadrant.it - www.2ndQuadrant.it -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription:

Re: [GENERAL] foreign key from array element

2012-09-23 Thread Gabriele Bartolini
ould update the commitfest.postgresql.org website. For now, I have updated that for you and the patch now reports you as a reviewer and links the message to the patch. Here it is: https://commitfest.postgresql.org/action/patch_view?id=900 Cheers, Gabriele -- Gabriele Bartolini - 2ndQuadrant Italia Post

Re: [GENERAL] [9.0] hot standby plus streaming replication

2010-09-30 Thread Gabriele Bartolini
is the possibility to build a sync between a 32 and a 64 bit (on linux)? As stated in the documentation (http://www.postgresql.org/docs/9.0/static/warm-standby.html), the hardware architecture must be the same. Hope this helps. Ciao, Gabriele -- Gabriele Bartolini - 2ndQuadrant Italia Post

Re: [GENERAL] Copying a column into a temp. table

2010-10-01 Thread Gabriele Bartolini
Hi Alex, Of course "select ... into" doesn't work, but how should I do it? Can't find in http://www.postgresql.org/docs/8.1/static/ You might want to look at the CREATE TABLE AS command. You might even use the temporary definer. Ciao, Gabriele -- Gabriele Bartolini

Re: [GENERAL] checkpoints are occurring too frequently

2011-11-17 Thread Gabriele Bartolini
mainly in terms of inserts/updates/deletes. I would gradually try and increase checkpoint_segments by 32 and monitor the effects. Cheers, Gabriele -- Gabriele Bartolini - 2ndQuadrant Italia PostgreSQL Training, Services and Support gabriele.bartol...@2ndquadrant.it - www.2ndQuadrant.it -

Re: [GENERAL] Streaming Replication Configuration

2011-12-15 Thread Gabriele Bartolini
it implied that I need to add 'postgres' maintenance database in there or something else? If the user carlos in your database has replication privileges, you can try and execute the commands by connecting to the postgres database (if your pg_hba.conf file allows you to do that, but t

Re: [GENERAL] Streaming Replication Configuration

2011-12-15 Thread Gabriele Bartolini
sebackup.html Ciao, Gabriele -- Gabriele Bartolini - 2ndQuadrant Italia PostgreSQL Training, Services and Support gabriele.bartol...@2ndquadrant.it - www.2ndQuadrant.it -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Postgresql Replication Comparison Required

2011-12-29 Thread Gabriele Bartolini
I could help you more here, but most of our professional work is performed under strict NDAs. An interesting and useful documentation section is this also: http://www.postgresql.org/docs/9.1/interactive/high-availability.html I hope this helps. Cheers, Gabriele -- Gabriele Bartolini

Re: [GENERAL] How to tell if server is in backup mode?

2012-03-29 Thread Gabriele Bartolini
idea to add it as admin function (I will have a think about it and possibly come up with a patch). Ciao, Gabriele -- Gabriele Bartolini - 2ndQuadrant Italia PostgreSQL Training, Services and Support gabriele.bartol...@2ndquadrant.it | www.2ndQuadrant.it -- Sent via pgsql-general mail

Re: [GENERAL] How to tell if server is in backup mode?

2012-03-29 Thread Gabriele Bartolini
Hi Toby, Il 29/03/12 10:46, Gabriele Bartolini ha scritto: Currently, there's no such a function. In general we simply check if a 'backup_label' file exists in PGDATA. However, it could be a good idea to add it as admin function (I will have a think about it and possibly come

Re: [GENERAL] Move Tables From One Database to Another

2012-03-29 Thread Gabriele Bartolini
tion). I suggest that you look at the -l and -L options in pg_restore, which allow you to select which dump entries to restore (selective restore). Cheers, Gabriele -- Gabriele Bartolini - 2ndQuadrant Italia PostgreSQL Training, Services and Support gabriele.bartol...@2ndquadrant.it | www.2ndQ

[GENERAL] How to remove CLUSTERs and 'partitioning tables'

2003-09-14 Thread Gabriele Bartolini
Hi guys, just a quick and probably stupid question. When I make a cluster based on an index on a table, how can I remove it later? Should I 'create' a new one by using the primary key index? Also, can I have more than 1 cluster on my table? Let me explain ... can I put for instance the reco