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] Recovery.conf and PITR

2013-08-09 Thread Gabriele Bartolini
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] Backup advice

2013-04-10 Thread Gabriele Bartolini
it is worth evaluating 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

Re: [GENERAL] orafce

2013-03-13 Thread Gabriele Bartolini
, Paolo -- 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

Re: [GENERAL] foreign key from array element

2012-09-24 Thread Gabriele Bartolini
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 PostgreSQL Training, Services

Re: [GENERAL] foreign key from array element

2012-09-20 Thread Gabriele Bartolini
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: http

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-18 Thread Gabriele Bartolini
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 your subscription: http

Re: [GENERAL] warnings about invalid search_path

2012-08-07 Thread Gabriele Bartolini
, 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 in that schema. -- Gabriele Bartolini - 2ndQuadrant Italia PostgreSQL Training, Services and Support

Re: [GENERAL] BI tools and postgresql

2012-07-26 Thread Gabriele Bartolini
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 Bartolini

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

2012-06-16 Thread Gabriele Bartolini
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 PostgreSQL Training

Re: [GENERAL] suggestion for backup

2012-05-20 Thread Gabriele Bartolini
a 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] How to tell if server is in backup mode?

2012-03-29 Thread Gabriele Bartolini
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 mailing list (pgsql

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 up with a patch

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

2012-03-29 Thread Gabriele Bartolini
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.2ndQuadrant.it

Re: [GENERAL] Postgresql Replication Comparison Required

2011-12-29 Thread Gabriele Bartolini
-- 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] Streaming Replication Configuration

2011-12-15 Thread Gabriele Bartolini
' 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 that's another issue). Ciao, Gabriele -- Gabriele Bartolini

Re: [GENERAL] Streaming Replication Configuration

2011-12-15 Thread Gabriele Bartolini
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

Re: [GENERAL] checkpoints are occurring too frequently

2011-11-17 Thread Gabriele Bartolini
the day 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] Postgres or Greenplum

2011-06-08 Thread Gabriele Bartolini
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 to your subscription

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] multiple group by on same table

2011-05-04 Thread Gabriele Bartolini
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 Support

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] Database gnu make equivalent

2011-04-05 Thread Gabriele Bartolini
afraid I have not 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

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

2011-03-16 Thread Gabriele Bartolini
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 Italia PostgreSQL Training, Services and Support

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

2010-12-21 Thread Gabriele Bartolini
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 via pgsql-general

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

2010-12-21 Thread Gabriele Bartolini
-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.2ndQuadrant.it -- Sent

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

2010-11-14 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

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

2010-11-03 Thread Gabriele Bartolini
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 -- Sent via pgsql-general mailing list

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

2010-11-03 Thread Gabriele Bartolini
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 to your subscription

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] DB become enormous with continuos insert and update

2010-10-28 Thread Gabriele Bartolini
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, Gabriele -- Gabriele Bartolini

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

2010-10-27 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-26 Thread Gabriele Bartolini
Hi, Il 26/10/10 23:01, Hfe80 ha scritto: Some one know how to solve the problem of db that became huge from 700 Mbyte to 16 Gbyte in 10 days and grow... Which version of PostgreSQL are you using? Some one Know this problem? Yes. Welcome to the Bloating club. :) Ciao, Gabriele -- Gabriele

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 - 2ndQuadrant Italia

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

2010-09-30 Thread Gabriele Bartolini
: there 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 PostgreSQL Training

[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