Re: [GENERAL] pgbouncer setup in the architecture

2014-08-27 Thread Gabriele Lohss
forums and documentation the only case described is accessing the pgbouncer database on the localhost. Thanks for any advice or hints, Gaby 2014-08-27 11:03 GMT+02:00 Gabriele Lohss : > Hi, > > thanks, you're right. My description wasn't very concrete. Our current set > u

Re: [GENERAL] pgbouncer setup in the architecture

2014-08-27 Thread Gabriele Lohss
Hi, thanks, you're right. My description wasn't very concrete. Our current set up is a single pgbouncer instance running on a VM in the same network like the webapplications. The database servers are in another firewall protected network. So the pgbouncer is now running on a standalone VM. I was w

[GENERAL] pgbouncer setup in the architecture

2014-08-19 Thread Gabriele Lohss
Hi, I'd like to use pgbouncer as connection pooler in our productive environment, which consists of six master db server plus 6 slaves and many webserver and services. For example, I'd like to use it as a central point from where I can redirect client connections easily without changing the code o

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
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] 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] orafce

2013-03-13 Thread Gabriele Bartolini
, Gabriele On Wed, 13 Mar 2013 09:48:19 +0100, Paolo Grifa wrote: Hi all, I am quite new in postgres, having experience with Oracle. I was trying to migrate some very simple applications from Oracle and found out that some functions like TRUNC() are only available via an addon called "orafce&

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] 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-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
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] 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] 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] 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] 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] 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

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] 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] 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] Streaming Replication Configuration

2011-12-15 Thread Gabriele Bartolini
On Thu, 15 Dec 2011 11:41:07 -0500, Carlos Mennens wrote: carlos@db1:~$ psql -c "SELECT pg_start_backup('label', true)" psql: FATAL: database "carlos" does not exist I forgot. You can also look at this: http://www.postgresql.org/docs/9.1/static/app-pgba

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] 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] 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] 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
Ciao Leonardo, I am not sure if this could apply to your case, but maybe - unless you have done it before - you could look at windowing functions (http://www.postgresql.org/docs/current/interactive/tutorial-window.html). They require PG8.4+ though. Cheers, Gabriele On Wed, 4 May 2011 11

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
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] 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] 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] 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] 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] Running postgres with a different user/group

2010-11-03 Thread Gabriele Bulfon
Thanx guys, all of your solutions are fine, but I could manage it in a different manner. Modified the ident map file to map my special system user to postgres, so I don't have to specify the postgres user any more ;) Thanx! Gabriele. -= Mail sent through We

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

2010-11-03 Thread Gabriele Bartolini
Hi Gabriele, I forgot to mention one thing. > That means that PostgreSQL is successfully running. Try and connect to the > database using a different user by passing the '-U' option to psql or by > setting the PGUSER environment variable. PostgreSQL creates a role/user

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

2010-11-03 Thread Gabriele Bartolini
Hi Gabriele, On Wed, 3 Nov 2010 11:29:25 +0100 (CET), Gabriele Bulfon wrote: > I need to run postgres under the same user/group, witout having to create > and use postgres user. That's reasonable and perfectly doable with Postgres. > But now I can't seem to connect to the d

[GENERAL] Running postgres with a different user/group

2010-11-03 Thread Gabriele Bulfon
can't seem to connect to the database, because it says: FATAL: role "postgres" does not exist How can I let postgres run under my own user instead of postgres? I can rebuild from sources, if needed. Thanx, Gabriele. -= Mail sent through WebTop2 =-

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
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] 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-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

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] [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] PostGreSQL Replication

2007-07-16 Thread Gabriele
> Sounds like something you'd want to handle within the application I believe i will try to follow this path. ---(end of broadcast)--- TIP 6: explain analyze is your friend

[GENERAL] PostGreSQL Replication

2007-07-09 Thread Gabriele
I know this is a delicate topic which must be approached cautiously. Let's have a server which feed data to multiple slaves, usually using direct online connections. Now, we may want to allow those client to sync the data to a local replica, work offline and then resync the data back to the server

[GENERAL] Design Tool

2007-07-03 Thread Gabriele
I need a design tool to design my database. Back in past I used DBDesigner (free) but it is best suited to MySQL and i now use PostGreSQL and SQLite. The tool should have most of the following: Ability to create a rather complex and arbitrarily big scheme and produce automatically the SQL code f

Re: [GENERAL] PostGreSQL for a small Desktop Application

2007-06-14 Thread Gabriele
On 14 Giu, 12:38, [EMAIL PROTECTED] (Marco Colombo) wrote: > While PG has tons more features than SQLite, the major question here is: > do you really need a database _server_? One thing that PG is designed > for is handling many (as in 100) concurrent users. Database users, that > is, meaning proc

Re: [GENERAL] PostGreSQL for a small Desktop Application

2007-06-13 Thread Gabriele
I will probably try PostGreSQL for my needs as it seem powerful enough and easy to ship to my potential customers. For the data provider i will try npgsql as you and others suggested, as it seem enough reliable and stable to be used efficiently. I will probably use newsgroups again later if and wh

[GENERAL] PostGreSQL for a small Desktop Application

2007-06-12 Thread Gabriele
I'm going to develop a medium sized business desktop client server application which will be deployed mostly on small sized networks and later eventually, hopefully, on medium sized networks. It will probably be developed using C#. I do need a solid DBMS wich can work with .Net framework. I do kno

[GENERAL] Locking rows

2005-05-26 Thread gabriele zelasco
Hi.I'm using postgresql 8.0.3 under win2000 and developing with VS2003 (npgsql net provider).I would like to start a transaction with a sql function.When user press "edit" button on my form, i would lock the current row.After user has modified data on form, pressing "save" button I would sa

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

2003-09-14 Thread Gabriele Bartolini
stance the record with, let's say, age between 10 and 20 on a specific cluster, from 20 to 30 on another one, and so on? Thank you -Gabriele ---(end of broadcast)--- TIP 3: if posting/reading through Usenet, please send an appropriate s