Re: [HACKERS] TODO request: log_long_transaction

2014-11-14 Thread Jim Nasby
On 11/7/14, 1:19 PM, Michael Banck wrote: Am Montag, den 27.10.2014, 19:29 + schrieb Thom Brown: >On 27 October 2014 19:21, Josh Berkus wrote: > >I just realized that there is one thing we can't log currently: > >transactions which last more than #ms. This is valuable diagnostic > >inform

Re: [HACKERS] TODO request: log_long_transaction

2014-11-08 Thread Kevin Grittner
Robert Haas wrote: >> 3. Should long transactions which are rolled back be logged as well? > > Yes. +1 >> 4. We log the statement when exceeding log_min_duration_statement, but >> for transactions, that does not make a lot of sense, or should the last >> statement be logged? I don't think that

Re: [HACKERS] TODO request: log_long_transaction

2014-11-07 Thread Robert Haas
You should add this patch here, so it doesn't get forgotten: https://commitfest.postgresql.org/action/commitfest_view/open On Fri, Nov 7, 2014 at 2:19 PM, Michael Banck wrote: > 1. Should this log when the duration is exceeded (like log_lock_waits), > or on commit? I guess the latter, cause log_

Re: [HACKERS] TODO request: log_long_transaction

2014-11-07 Thread Michael Banck
Hi, Am Montag, den 27.10.2014, 19:29 + schrieb Thom Brown: > On 27 October 2014 19:21, Josh Berkus wrote: > > I just realized that there is one thing we can't log currently: > > transactions which last more than #ms. This is valuable diagnostic > > information when looking for issues like ca

Re: [HACKERS] TODO request: log_long_transaction

2014-10-27 Thread Thom Brown
On 27 October 2014 19:21, Josh Berkus wrote: > Hackers, > > I just realized that there is one thing we can't log currently: > transactions which last more than #ms. This is valuable diagnostic > information when looking for issues like causes of bloat and deadlocks. > > I'd like it to be on the

Re: [HACKERS] TODO request: multi-dimensional arrays in PL/pythonU

2013-08-15 Thread Josh Berkus
> There is no way to know how many dimensions the function expects to get > back. (float[][] doesn't actually mean anything.) So when converting > the return value back to SQL, you'd have to guess, is the first element > convertible to float (how do you know?), if not, does it support the > sequ

Re: [HACKERS] TODO request: multi-dimensional arrays in PL/pythonU

2013-08-15 Thread Claudio Freire
On Wed, Aug 14, 2013 at 9:34 PM, Peter Eisentraut wrote: > On Tue, 2013-08-13 at 14:30 -0700, Josh Berkus wrote: >> Currently PL/python has 1 dimension hardcoded for returning arrays: >> >> create or replace function nparr () >> returns float[][] >> language plpythonu >> as $f$ >> from numpy impor

Re: [HACKERS] TODO request: multi-dimensional arrays in PL/pythonU

2013-08-14 Thread Peter Eisentraut
On Tue, 2013-08-13 at 14:30 -0700, Josh Berkus wrote: > Currently PL/python has 1 dimension hardcoded for returning arrays: > > create or replace function nparr () > returns float[][] > language plpythonu > as $f$ > from numpy import array > x = ((1.0,2.0),(3.0,4.0),(5.0,6.0),) > return x > $f$;

Re: [HACKERS] TODO Request

2006-09-05 Thread Alvaro Herrera
Rocco Altier wrote: > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of Hannu Krosing > > > > Ühel kenal päeval, T, 2006-08-29 kell 22:12, kirjutas Joshua D. Drake: > > > >> Auto creations of partitions > > > > > > This would be something like: > > > > > > create table foo ()

Re: [HACKERS] TODO Request

2006-09-05 Thread Rocco Altier
> From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Hannu Krosing > > Ühel kenal päeval, T, 2006-08-29 kell 22:12, kirjutas Joshua D. Drake: > > >> Auto creations of partitions > > > > This would be something like: > > > > create table foo () partition by ... > > from the refere

Re: [HACKERS] TODO Request

2006-09-04 Thread Hannu Krosing
Ühel kenal päeval, T, 2006-08-29 kell 22:12, kirjutas Joshua D. Drake: > >> Auto creations of partitions > > This would be something like: > > create table foo () partition by ... from the referenced MySQL manual entry CREATE TABLE members ( ... joined DATE NOT NULL ) PARTITION BY KEY(j

Re: [HACKERS] TODO Request

2006-09-02 Thread Joshua D. Drake
Bruce Momjian wrote: Joshua D. Drake wrote: Bruce Momjian wrote: Added to TODO: * Simplify ability to create partitioned tables This would allow creation of partitioned tables without requiring creation of rules for INSERT/UPDATE/DELETE, and constraints for

Re: [HACKERS] TODO Request

2006-09-02 Thread Bruce Momjian
Joshua D. Drake wrote: > Bruce Momjian wrote: > > Added to TODO: > > > > * Simplify ability to create partitioned tables > > > > This would allow creation of partitioned tables without requiring > > creation of rules for INSERT/UPDATE/DELETE, and constraints for > > rapid pa

Re: [HACKERS] TODO Request

2006-09-02 Thread Joshua D. Drake
Bruce Momjian wrote: Added to TODO: * Simplify ability to create partitioned tables This would allow creation of partitioned tables without requiring creation of rules for INSERT/UPDATE/DELETE, and constraints for rapid partition selection. Options could i

Re: [HACKERS] TODO Request

2006-09-02 Thread Bruce Momjian
Added to TODO: * Simplify ability to create partitioned tables This would allow creation of partitioned tables without requiring creation of rules for INSERT/UPDATE/DELETE, and constraints for rapid partition selection. Options could include range and hash

Re: [HACKERS] TODO Request

2006-08-30 Thread Jim C. Nasby
On Tue, Aug 29, 2006 at 03:53:57PM -0700, Joshua D. Drake wrote: > Hello, > > Can we get: > > Multiple table indexes (for uniqueness across partitions for example) Before any of the below happen, I think it'd be good to get a cleaner way to define partitions; one that didn't involve manually mes

Re: [HACKERS] TODO Request

2006-08-29 Thread Joshua D. Drake
Tom Lane wrote: "Joshua D. Drake" <[EMAIL PROTECTED]> writes: Can we get: Multiple table indexes (for uniqueness across partitions for example) Auto creations of partitions Hash partitioning Key partitioning Sub partitioning Added to the TODO list? Perhaps a certain amount of specificity

Re: [HACKERS] TODO Request

2006-08-29 Thread Joshua D. Drake
Tom Lane wrote: "Joshua D. Drake" <[EMAIL PROTECTED]> writes: Can we get: Well this should be fun. Multiple table indexes (for uniqueness across partitions for example) Auto creations of partitions This would be something like: create table foo () partition by ... Hash partitioning

Re: [HACKERS] TODO Request

2006-08-29 Thread Tom Lane
"Joshua D. Drake" <[EMAIL PROTECTED]> writes: > Can we get: > Multiple table indexes (for uniqueness across partitions for example) > Auto creations of partitions > Hash partitioning > Key partitioning > Sub partitioning > Added to the TODO list? Perhaps a certain amount of specificity as to wha