Re: [GENERAL] Partitioned tables do not return affected row counts to client

2016-06-04 Thread Vik Fearing
On 02/06/16 20:01, rverghese wrote: > We are looking to move from one large table to partitioned tables. Since the > inserts and updates are made to the master table and then inserted into the > appropriate partitioned table based on the trigger rules, the affected_rows > returned to the client (PH

Re: [GENERAL] Partitioned tables do not return affected row counts to client

2016-06-02 Thread rob stone
On Thu, 2016-06-02 at 11:01 -0700, rverghese wrote: > We are looking to move from one large table to partitioned tables. > Since the > inserts and updates are made to the master table and then inserted > into the > appropriate partitioned table based on the trigger rules, the > affected_rows > retu

[GENERAL] Partitioned tables do not return affected row counts to client

2016-06-02 Thread rverghese
We are looking to move from one large table to partitioned tables. Since the inserts and updates are made to the master table and then inserted into the appropriate partitioned table based on the trigger rules, the affected_rows returned to the client (PHP in this case) is always 0. We have been us

[GENERAL] partitioned tables

2015-05-20 Thread George Neuner
Hi all, I've been using Postgresql (9.3) for a while, but I'm new to partitioned tables. 1. I have noticed that when the partition trigger function returns NULL (to stop operation on the parent table), the operation always reports no (zero) rows affected - even when rows have been affected. Th

Re: [GENERAL] Partitioned tables as a poor mans columnar index?

2009-10-16 Thread Peter Hunsberger
On Fri, Oct 16, 2009 at 3:31 PM, marcin mank wrote: > On Fri, Oct 16, 2009 at 9:19 PM, Peter Hunsberger > wrote: > >> The basic problem I have is that I have some tables that are >> potentially very long (100,000's to millions of rows) and very skinny, > >> and I end up with maybe a total of 12 b

Re: [GENERAL] Partitioned tables as a poor mans columnar index?

2009-10-16 Thread marcin mank
On Fri, Oct 16, 2009 at 9:19 PM, Peter Hunsberger wrote: > The basic problem I have is that I have some tables that are > potentially very long (100,000's to millions of rows) and very skinny, > and I end up with maybe a total of 12 bits of data in each row. Are You aware that there are some 20

[GENERAL] Partitioned tables as a poor mans columnar index?

2009-10-16 Thread Peter Hunsberger
I just realized that my replies to my previous question on sparse arrays went off list due to the way this list server is set up (sigh). It has occurred to me that for my problem, one possible solution is columnar indexes and that, in a way, partitioned tables in Postgres might give me somewhat t

Re: [GENERAL] Partitioned Tables - How/Can does slony handle it?

2008-08-28 Thread Alan Hodgson
On Thursday 28 August 2008, Magnus Hagander <[EMAIL PROTECTED]> wrote: > Ow Mun Heng wrote: > > I posed this question to the Slony List as well, but no response yet. > > It's actually in the Slony docs: > http://www.slony.info/documentation/partitioning.html > > I haven't actually used it in produc

Re: [GENERAL] Partitioned Tables - How/Can does slony handle it?

2008-08-28 Thread Magnus Hagander
Ow Mun Heng wrote: > I posed this question to the Slony List as well, but no response yet. It's actually in the Slony docs: http://www.slony.info/documentation/partitioning.html I haven't actually used it in production myself, though :-) //Magnus -- Sent via pgsql-general mailing list (pgsql-g

[GENERAL] Partitioned Tables - How/Can does slony handle it?

2008-08-28 Thread Ow Mun Heng
I posed this question to the Slony List as well, but no response yet. I'll post it here as well, to elicit some responses, as there's a larger community of people using PG+Slony who may also be on slony-list. The question that I have is, I'm trying to determine if there's a possibility that I can

Re: [GENERAL] Partitioned tables and views

2008-07-31 Thread Francisco Reyes
On 12:54 pm 07/31/08 "Mike Gould" <[EMAIL PROTECTED]> wrote: > 1. Is the planner/optimizer intelligent enough to know when we are > not doing a query based on location? In short yes. If the DB doesn't see the condition by which your tables are partitioned it will search all the partitions. > 2.

[GENERAL] Partitioned tables and views

2008-07-31 Thread Mike Gould
I have several tables that we have partitioned by physical location. This seems to give us the best overall performance when doing location specific queries. I have a few questions. 1. Is the planner/optimizer intelligent enough to know when we are not doing a query based on location? For ex

[GENERAL] Partitioned tables & Slony

2007-12-20 Thread Goboxe
Hi, What need to be taken care of when replicating data from partitioned tables? I have several master tables that are inherited by date either daily, weekly and monthly. How to automate addition of newly created child tables into Slony cluster? Thanks, Goboxe ---(end o

Re: [GENERAL] Partitioned tables & Slony

2007-12-20 Thread Goboxe
Thanks Chris. How do I use *.sh & *.ik files? Goboxe On Dec 19, 12:17 am, Chris Browne <[EMAIL PROTECTED]> wrote: > Goboxe <[EMAIL PROTECTED]> writes: > > What need to be taken care of when replicating data from partitioned > > tables? > > > I have several master tables that are inherited by dat

Re: [GENERAL] Partitioned tables & Slony

2007-12-19 Thread Chris Browne
Goboxe <[EMAIL PROTECTED]> writes: > Thanks Chris. > > How do I use *.sh & *.ik files? The "*.sh" files are shell scripts that should run with any Bourne shell; the *specific* intent is that they be invoked by the test control script, "run_test.sh". The "*.ik" files are (mostly) bodies of Slonik

Re: [GENERAL] Partitioned tables & Slony

2007-12-18 Thread Chris Browne
Goboxe <[EMAIL PROTECTED]> writes: > What need to be taken care of when replicating data from partitioned > tables? > > I have several master tables that are inherited by date either daily, > weekly and monthly. > > How to automate addition of newly created child tables into Slony > cluster? There

Re: [GENERAL] Partitioned tables, rules, triggers

2007-10-08 Thread Josh Tolley
On 10/6/07, Goboxe <[EMAIL PROTECTED]> wrote: > Josh, > > Thanks for sharing a very good info on partitioning. > Don't thank me -- this comes from Robert Treat. I'm just the messenger :) -Josh/eggyknap ---(end of broadcast)--- TIP 2: Don't 'kill -9

Re: [GENERAL] Partitioned tables, rules, triggers

2007-10-08 Thread Goboxe
Josh, Thanks for sharing a very good info on partitioning. On Oct 5, 10:08 pm, [EMAIL PROTECTED] ("Josh Tolley") wrote: > On 10/3/07, Goboxe <[EMAIL PROTECTED]> wrote: > > > Hi, > > > I have two questions on the above: > > > 1. I found in some postings recommended to use triggers instead of > >

Re: [GENERAL] Partitioned tables, rules, triggers

2007-10-05 Thread Joshua D. Drake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Erik Jones wrote: > On Oct 5, 2007, at 10:53 AM, Scott Marlowe wrote: > >> On 10/5/07, Josh Tolley <[EMAIL PROTECTED]> wrote: >>> On 10/3/07, Goboxe <[EMAIL PROTECTED]> wrote: Hi, I have two questions on the above: 1. I found

Re: [GENERAL] Partitioned tables, rules, triggers

2007-10-05 Thread Erik Jones
On Oct 5, 2007, at 10:53 AM, Scott Marlowe wrote: On 10/5/07, Josh Tolley <[EMAIL PROTECTED]> wrote: On 10/3/07, Goboxe <[EMAIL PROTECTED]> wrote: Hi, I have two questions on the above: 1. I found in some postings recommended to use triggers instead of rules. Is this documented somewhere?

Re: [GENERAL] Partitioned tables, rules, triggers

2007-10-05 Thread Scott Marlowe
On 10/5/07, Josh Tolley <[EMAIL PROTECTED]> wrote: > On 10/3/07, Goboxe <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I have two questions on the above: > > > > 1. I found in some postings recommended to use triggers instead of > > rules. Is this documented somewhere? > > A howto is available at > htt

Re: [GENERAL] Partitioned tables, rules, triggers

2007-10-05 Thread Josh Tolley
On 10/3/07, Goboxe <[EMAIL PROTECTED]> wrote: > Hi, > > I have two questions on the above: > > 1. I found in some postings recommended to use triggers instead of > rules. Is this documented somewhere? A howto is available at http://images.omniti.net/omniti.com/talks/partitions-public.pdf - Josh/e

[GENERAL] Partitioned tables, rules, triggers

2007-10-04 Thread Goboxe
Hi, I have two questions on the above: 1. I found in some postings recommended to use triggers instead of rules. Is this documented somewhere? 2. When using trigger, any examples on how to update the trigger dynamically when tables are added or deleted from the partitioned? Thanks, Amin -