Re: [PERFORM] pgbench to the MAXINT

2011-01-09 Thread Euler Taveira de Oliveira
that is because atoi() is so fragile. So where we're at now is that the maximum database pgbench can create is a scale of 21474. That's because 21475 * 100,000 > INT_MAX. We must provide an alternative to atoi() that deals with 64-bit integers. -- Euler Taveira de Olive

Re: [PERFORM] pgbench to the MAXINT

2011-01-11 Thread Euler Taveira de Oliveira
Em 10-01-2011 05:25, Greg Smith escreveu: Euler Taveira de Oliveira wrote: Em 07-01-2011 22:59, Greg Smith escreveu: setrandom: invalid maximum number -2147467296 It is failing at atoi() circa pgbench.c:1036. But it just the first one. There are some variables and constants that need to be

Re: [PERFORM] pg_xlog size

2011-03-16 Thread Euler Taveira de Oliveira
-config-wal.html#GUC-WAL-KEEP-SEGMENTS -- Euler Taveira de Oliveira http://www.timbira.com/ -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance

Re: [PERFORM] maintenance_work_mem + create index

2011-03-24 Thread Euler Taveira de Oliveira
Em 24-03-2011 11:40, Uwe Bartels escreveu: Or is there a dynamic way to put $PGDATA/base/pgsql_tmp into RAM without blocking it completely like a ram disk? Create a tablespace in a ram disk and set temp_tablespaces. -- Euler Taveira de Oliveira http://www.timbira.com/ -- Sent via pgsql

Re: [PERFORM] Performance problems inside a stored procedure.

2008-01-29 Thread Euler Taveira de Oliveira
s done); did you try STABLE? Could you show us the EXPLAIN ANALYZE of query and function? -- Euler Taveira de Oliveira http://www.timbira.com/ ---(end of broadcast)--- TIP 4: Have you searched our list archives? http://archives.postgresql.org

Re: [PERFORM] index

2009-01-14 Thread Euler Taveira de Oliveira
_field, then you need an index on it. Maybe you could try ip4r [1]. [1] http://pgfoundry.org/projects/ip4r/ -- Euler Taveira de Oliveira http://www.timbira.com/ -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.po

Re: [PERFORM] "tablespace" for tranaction log?

2009-01-24 Thread Euler Taveira de Oliveira
too risky to do such a change when the server is running. You need to stop the database and make the change. Also, you can setup the xlog to a different location at initdb time. -- Euler Taveira de Oliveira http://www.timbira.com/ -- Sent via pgsql-performance mailing list (pgsql

Re: [PERFORM] current transaction in productive database

2009-03-20 Thread Euler Taveira de Oliveira
quot; $ psql -U postgres -c "$myq" && sleep 60 && psql -U postgres -c "$myq" sum --- 178992891 (1 row) sum --- 178996065 (1 row) $ bc -q scale=3 (178996065-178992891)/60 52.900 Depending on your workload pattern, it's recommen

Re: [PERFORM] Why is PostgreSQL so slow on Windows ( Postgres 8.3.7) version

2009-08-02 Thread Euler Taveira de Oliveira
eric)) Out of curiosity, why does foreign key have different datatype of its primary key? -- Euler Taveira de Oliveira http://www.timbira.com/ -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance

Re: [PERFORM] Best settings to load a fresh database

2009-08-07 Thread Euler Taveira de Oliveira
re. > And make sure archive mode is turned off. Otherwise, you can't use the WAL bypass facility. -- Euler Taveira de Oliveira http://www.timbira.com/ -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgr

Re: [PERFORM] Index row requires 9324 bytes maximum size is 8191

2009-09-19 Thread Euler Taveira de Oliveira
own limitation; but even if it would be possible I don't think it would be a good idea. Why on Earth would I search using a big field? What kind of content are you trying to index? -- Euler Taveira de Oliveira http://www.timbira.com/ -- Sent via pgsql-performance mailing list (pgsql-

Re: [PERFORM] table full scan or index full scan?

2009-10-17 Thread Euler Taveira de Oliveira
]. [1] http://wiki.postgresql.org/wiki/Slow_Counting -- Euler Taveira de Oliveira http://www.timbira.com/ -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance

Re: [PERFORM] Issues with \copy from file

2009-10-17 Thread Euler Taveira de Oliveira
using version >= 8.3. Just do: BEGIN; TRUNCATE TABLE foo; COPY foo FROM ...; COMMIT; PostgreSQL will skip WAL writes and just fsync() the table at the end of the command. Also, take a look at [1]. [1] http://www.postgresql.org/docs/current/interactive/populate.html -- Euler Taveira d

Re: [PERFORM] a heavy duty operation on an "unused" table kills my server

2010-01-13 Thread Euler Taveira de Oliveira
18.php -- Euler Taveira de Oliveira http://www.timbira.com/ -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance