Re: [HACKERS] SET syntax in INSERT

2016-01-14 Thread Marc Mamin
ts caveat: create temp table t( a int,b int); insert into t select 1 as b, 2 as a; select * from t ... regards, Marc Mamin -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

[HACKERS] feature wish: filter log_min_duration_statement according to the context (parse|bind|execute|...)

2017-05-11 Thread Marc Mamin
ent this though. best regards, Marc Mamin

[HACKERS] pg_dump -Fd and compression level

2015-07-23 Thread Marc Mamin
d, as though it had been fed through gzip; but the default is not to compress. The tar archive format currently does not support compression at all. shouldn't that be changed to - For the custom archive format + For the directory and custom archive formats best rega

Re: [HACKERS] pg_dump -Fd and compression level

2015-07-24 Thread Marc Mamin
this is bound to this 9.3.7 fix: "In pg_dump, fix failure to honor -Z compression level option together with -Fd (Michael Paquier)" I understand that the modification is wishfull, but the change has nevertheless a non negligable impact. This had increased our backup repository of about 1TB

Re: [HACKERS] pg_dump -Fd and compression level

2015-07-24 Thread Marc Mamin
t is to compress at a moderate level" => "the default is to compress at the lowest level" And maybe a quick notice for planet Postgres to highlight the modification of the default behavior. (I' haven't a blog myself ...) IMHO a slightly higher default would help spare

Re: [HACKERS] pg_dump -Fd and compression level

2015-07-25 Thread Marc Mamin
>On Sat, Jul 25, 2015 at 9:56 PM, Andrew Dunstan wrote: >> >> On 07/25/2015 03:20 AM, Andrew Dunstan wrote: >>> >>> >>> On 07/25/2015 02:34 AM, Marc Mamin wrote: >>>> >>>> >>>>> Andrew Dunstan writes: >>>

Re: [HACKERS] pg_dump -Fd and compression level

2015-07-25 Thread Marc Mamin
>On Sat, Jul 25, 2015 at 11:09 PM, Marc Mamin wrote: >> >>>On Sat, Jul 25, 2015 at 9:56 PM, Andrew Dunstan wrote: >>>> >>>> On 07/25/2015 03:20 AM, Andrew Dunstan wrote: >>>>> >>>>> >>>>>

Re: [HACKERS] pg_dump -Fd and compression level

2015-07-25 Thread Marc Mamin
> >> >> I propose to tighten pg_dump's rules so that only 0..9 are accepted as >> arguments for -Z, and in compress_io.c:cfopen(), if compression is >> equal to Z_DEFAULT_COMPRESSION, not add any explicit compression value >> to the mode, thus using the zlib default. >> >> > > >As per attached pat

Re: [HACKERS] pg_dump -Fd and compression level

2015-07-27 Thread Marc Mamin
"); >>226 } >> >> > >In fact, the first two tests look unnecessary. Neither condition should >be possible now. > Hello, Isn't the second test still required if you call pg_dump -Ft without setting -Z0 explicitly ? (=> AH->compression == Z_

Re: [HACKERS] proposal: multiple psql option -c

2015-07-28 Thread Marc Mamin
4; END; thoughts ? The same logic could be added to -f although I see less advantages as with adding -C psql -1 -f "file1, file2" -f "file3, file4" regards, Marc Mamin

Re: [HACKERS] proposal: multiple psql option -c

2015-07-28 Thread Marc Mamin
> > >2015-07-28 10:43 GMT+02:00 Marc Mamin : > > >> >> >>2015-07-28 5:24 GMT+02:00 Pavel Stehule : >> >>2015-07-27 21:57 GMT+02:00 Andrew Dunstan : >> >>On 07/27/2015 02:53 PM, Pavel Stehule wr

Re: [HACKERS] Declarative partitioning

2015-08-18 Thread Marc Mamin
the listvalues? listvalues: [[NOT] IN] (val1, ...) I've thought a few times about moving data with some most common values to dedicated partitions and keeping the rest in a separate one... best regards, Marc Mamin -- Sent via pgsql-hackers mailing list (pgsql-hackers@post

Re: [HACKERS] Declarative partitioning

2015-08-19 Thread Marc Mamin
>On 2015-08-19 AM 02:57, Marc Mamin wrote: >>> 2. Creating a partition of a partitioned table >>> >>> CREATE TABLE table_name >>> PARTITION OF partitioned_table_name >>> FOR VALUES values_spec; >>> >>> Where values_spec is: >

Re: [HACKERS] Using quicksort for every external sort run

2015-09-06 Thread Marc Mamin
ultaneously. Our servers have 40-60 GB RAM , ca. 12 CPUs and we set maintenance mem to 1-2 GB for this. If the create index themselves start using parallelism, I guess that we might need to review our workflow... best regards, Marc Mamin -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgr

Re: [HACKERS] review: psql and pset without any arguments

2013-09-07 Thread Marc Mamin
alues are not a variables) - > but maybe some enhanced output (only for this resume) can be better: > postgres=# \pset > Output format (format) is aligned. > Border style (border) is 1. ... +1 Many thanks for taking care of my suggestion. best regards, Marc Mamin

[HACKERS] invalid regexp crashes the server on windows or 9.3

2013-09-25 Thread Marc Mamin
n Serverprozesse noch laufen und beenden Sie diese. translated: exception 0xC0FD stopped PID , check ntstatus.h for the description of the hexadecimal value regards, Marc Mamin

Re: [HACKERS] Some questions about the array.

2015-11-09 Thread Marc Mamin
] == {3,4,5,6} > >What do you think? Hi, ~ is the bitwise NOT operator. so array[~n:~m] has a current meaning. Not very useful though. It would be better to choose another character. my 2 pence, Marc Mamin -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] Speed dblink using alternate libpq tuple storage

2012-01-21 Thread Marc Mamin
e it and would like to handle this rather cosmetic issue as well. http://archives.postgresql.org/pgsql-bugs/2011-08/msg00113.php best regards, Marc Mamin -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] Qual evaluation cost estimates for GIN indexes

2012-02-20 Thread Marc Mamin
In some cases I got an identical plan, in other an inversion of the plans (with NOT operator(s)). In all cases where the plans differed, the planner chose the worse one, with severe time differences. So a naive 'empirical' question: In case of an inverted index in non lossy situation, sh

Re: [HACKERS] Qual evaluation cost estimates for GIN indexes

2012-02-20 Thread Marc Mamin
> > that compresses at almost 7X than zlib (-1) and decompresses at 6X. > > Regards, > Ken Hi, No, and my concern is more about cost estimation for ts_queries / gin indexes as for the detoasting issue. regards, Marc Mamin -- Sent via pgsql-hackers mailing list (pgsql-hackers@

Re: [HACKERS] Gsoc2012 Idea --- Social Network database schema

2012-03-25 Thread Marc Mamin
7;t have the knowledge to help on this nor to evaluate if this is might be a good Gssoc project. Just an idea for the case you are looking for another topic. best regards, Marc Mamin From: pgsql-hackers-ow...@postgresql.org [mailto:pgsql-hackers-ow...@postgresql.org] On Behalf Of Q

[HACKERS] repeated warnings with 9.3 Beta 1 on windows

2013-05-27 Thread Marc Mamin
n wird trotzdem erzeugt. Abfrage war erfolgreich durchgeführt: 20 Zeilen, 312 ms Ausführungszeit. same test on 9.1 Linux: WARNING: column "a" has type "unknown" DETAIL: Proceeding with relation creation anyway. Query returned successfully: 2000 rows affected, 9266 ms execution time. regards, Marc Mamin

Re: [HACKERS] repeated warnings with 9.3 Beta 1 on windows

2013-05-27 Thread Marc Mamin
c Maminm Von: Tom Lane [t...@sss.pgh.pa.us] Gesendet: Montag, 27. Mai 2013 16:25 An: Marc Mamin Cc: 'pgsql-hackers@postgresql.org' Betreff: Re: [HACKERS] repeated warnings with 9.3 Beta 1 on windows Marc Mamin writes: > while playing with 9.3 Beta 1 on windows,

Re: [HACKERS] psql and pset without any arguments

2013-06-29 Thread Marc Mamin
Line style is unicode. >Pager is used for long output. >Record separator is . >(postgres@[local]:5494) [postgres] > Hello, this is a nice additional feature. As a user (not a hacker), I would prefer to see the real parameter name instead of the "display name&q

Re: [HACKERS] How could we make it simple to access the log as a table?

2012-05-30 Thread Marc Mamin
e active log and add the timestamp only when switching e.g. pg-myhost_3332-20120530_1200.csv pg-myhost_3332-20120530_1300.csv pg-myhost_3332.csv <= current best regards, Marc Mamin -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] Nasty, propagating POLA violation in COPY CSV HEADER

2012-06-20 Thread Marc Mamin
e > for backwards compatibility, and for cases where the CSV header was > generated by another program (Excel?) so the column names don't match. 4) MAP_HEADER ('column 1'-> 'col_1', 'Date' -> 'input_date' ...) to cover the case when column names do not match. my 2 pences, Marc Mamin

Re: [HACKERS] Schema version management

2012-07-06 Thread Marc Mamin
needs and preferences... best regards, Marc Mamin > -Original Message- > From: pgsql-hackers-ow...@postgresql.org [mailto:pgsql-hackers- > ow...@postgresql.org] On Behalf Of Robert Haas > Sent: Freitag, 6. Juli 2012 15:02 > To: Dimitri Fontaine > Cc: Tom Lane; Ch

[HACKERS] pg_upgrade: delete_old_cluster.sh issues

2013-11-12 Thread Marc Mamin
f pg_subtrans rm -rf pg_tblspc rm -rf pg_twophase rm -rf PG_VERSION (*) rm -rf pg_xlog rm -rf postgresql.conf (*) rm -rf postmaster.log rm -rf postmaster.opts (*) (*): could be nice to keep as a reference. best regards, Marc Mamin

[HACKERS] 9.5.2: "sql" as reserved word?

2016-05-04 Thread Marc Mamin
notes, nor is "sql" listed as reserved keyword. best regards, Marc Mamin

Re: [HACKERS] tablespaces inside $PGDATA considered harmful

2015-01-31 Thread Marc Mamin
ick evaluation on how to fix this, but gave it up for now due to the work amount. So please be cautious about disallowing it too abruptly. Back-patching a change that disallow our current architecture could prevent us to apply minor releases for a while... regards, Marc Mamin -- Sent via

[HACKERS] 9.5 alpha: some small comments on BRIN and btree_gin

2015-07-06 Thread Marc Mamin
quot;fence" against useless BRIN indexes that would allow a fallback on a table scan. But the time overhead remind small :) best regards, Marc Mamin -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] 9.5 alpha: some small comments on BRIN and btree_gin

2015-07-07 Thread Marc Mamin
> -Original Message- > From: Josh Berkus [mailto:j...@agliodbs.com] > Sent: Dienstag, 7. Juli 2015 02:04 > > On 07/06/2015 12:20 AM, Marc Mamin wrote: > >There seems to be no "fence" against useless BRIN indexes that > would allow a fallback on

Re: [HACKERS] proposal: multiple psql option -c

2015-07-17 Thread Marc Mamin
> On Thu, Jul 16, 2015 at 12:42 PM, Pavel Stehule > wrote: > Hi > can we support multiple "-c" option? > Why? Because some statements like VACUUM cannot be used together with any > other statements with single -c option. The current solution is using echo > and pipe op, but it is a complication

[HACKERS] Another hstore_type idea

2011-12-23 Thread Marc Mamin
ke sense if it were to bring a significant performance gain compared to the custom type approach. best regards and Merry Christmas, Marc Mamin

[HACKERS] CLONE TABLE DATA TO

2012-01-13 Thread Marc Mamin
les with hourly imports which may contain > 100 Mio rows and require 7 indices on them. In order to improve import performances, I first do a copy of the active table, import new data and rebuild the indexes. Thanks for your great job, Marc Mamin

Re: [HACKERS] CLONE TABLE DATA TO

2012-01-13 Thread Marc Mamin
This would be great, but I can't C :-( Marc > -Original Message- > From: Robert Haas [mailto:robertmh...@gmail.com] > Sent: Freitag, 13. Januar 2012 14:12 > To: Marc Mamin > Cc: pgsql-hackers@postgresql.org > Subject: Re: [HACKERS] CLONE TABLE DATA TO > >

[HACKERS] "pivot aggregation" with a patched intarray

2014-05-30 Thread Marc Mamin
icount_to_array(integer) ( SFUNC=iarray_addat, STYPE=int4[], INITCOND='{0}' ); CREATE AGGREGATE iarray_flag(integer) ( SFUNC=iarray_setat, STYPE=int4[], INITCOND='{0}' ); CREATE AGGREGATE iarray_sum(int[]) ( SFUNC=isumv, STYPE=int[]

Re: [HACKERS] "pivot aggregation" with a patched intarray

2014-05-30 Thread Marc Mamin
_sum(int[]) ( SFUNC=isumv, STYPE=int[], INITCOND='{0}' ); regards, Marc Mamin _int_op.c.gz Description: _int_op.c.gz -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] "pivot aggregation" with a patched intarray

2014-06-01 Thread Marc Mamin
>On Sat, May 31, 2014 at 12:31 AM, Marc Mamin wrote: >> I have patched intarray with 3 additional functions in order to >> count[distinct] event IDs >> into arrays, whereas the array position correspond to the integer values. >> (mimic column oriented storage) >

Re: [HACKERS] "pivot aggregation" with a patched intarray

2014-06-05 Thread Marc Mamin
> -Original Message- > From: Ali Akbar [mailto:the.ap...@gmail.com] > Sent: Donnerstag, 5. Juni 2014 01:12 > To: Marc Mamin > Cc: Michael Paquier; pgsql-hackers@postgresql.org > Subject: Re: [HACKERS] "pivot aggregation" with a patched intarray > > 201

Re: [HACKERS] "pivot aggregation" with a patched intarray

2014-06-05 Thread Marc Mamin
> From: Ali Akbar [mailto:the.ap...@gmail.com] > Sent: Freitag, 6. Juni 2014 03:44 > Subject: Re: [HACKERS] "pivot aggregation" with a patched intarray > > 2014-06-05 17:18 GMT+07:00 Marc Mamin : > > I'm thinking about adding a final function to my aggregat