[GENERAL] Could not truncate directory "pg_subtrans": apparent wraparound

2013-11-18 Thread Rafael Martinez
- PostgreSQL 9.1.9 on x86_64-unknown-linux-gnu, compiled by gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-3), 64-bit regards, - -- Rafael Martinez Guerrero Center for Information Technology University of Oslo, Norway PGP Public Key: http://fol

Re: [GENERAL] Problem creating index

2013-08-26 Thread Rafael Martinez Guerrero
otiation_limit to 0 in your postgresql.conf and restart postgreSQL. regards, -- Rafael Martinez Guerrero Center for Information Technology University of Oslo, Norway PGP Public Key: http://folk.uio.no/rafael/ -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes

Re: [GENERAL] PostgreSQL binaries under /usr/lib, why?

2013-02-22 Thread Rafael Martinez
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/22/2013 12:40 PM, Stuart Bishop wrote: > On Fri, Feb 22, 2013 at 4:41 PM, Rafael Martinez > wrote: >> According to FHS-2.3, /usr/lib includes object files, libraries, >> and internal binaries that are not intended to be ex

[GENERAL] PostgreSQL binaries under /usr/lib, why?

2013-02-22 Thread Rafael Martinez
apt.postgresql.org service also going to use this directory for postgres binaries? Thanks in advance. regards, - -- Rafael Martinez Guerrero Center for Information Technology University of Oslo, Norway PGP Public Key: http://folk.uio.no/rafael/ -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.14 (GNU

Re: [GENERAL] No control over max.num. WAL files

2011-05-25 Thread Rafael Martinez
blem' when creating a GIN index on a tsvector column on a 4217 MB table (This takes longer than checkpoint_timeout) - -- Rafael Martinez Guerrero Center for Information Technology University of Oslo, Norway PGP Public Key: http://folk.uio.no/rafael/ -BEGIN PGP SIGNATURE- Versio

Re: [GENERAL] No control over max.num. WAL files

2011-05-25 Thread Rafael Martinez
ting a GIN index on a 4217 MB table. See my first post for the relevant information from the log file (No relevant information/errors before this) STATEMENT: CREATE INDEX attachments_textsearch ON attachments USING gin (textsearchable); Where 'textsearchable' is a tsvector column. In the sour

Re: [GENERAL] No control over max.num. WAL files

2011-05-25 Thread Rafael Martinez
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/25/2011 02:08 PM, Andrew Sullivan wrote: > On Wed, May 25, 2011 at 01:30:35PM +0200, Rafael Martinez wrote: Thanks for your answer. >> >> According to the documentation [1] we can expect a maximum of >> (3 * checkpoint

[GENERAL] No control over max.num. WAL files

2011-05-25 Thread Rafael Martinez
xtsearchable); Maybe the problem is related to this? Any ideas?, thanks in advance. [1] http://www.postgresql.org/docs/8.3/interactive/wal-configuration.html regards, - -- Rafael Martinez Guerrero Center for Information Technology University of Oslo, Norway PGP Public Key: http://f

Re: [GENERAL] Weird WAL problem - 9.0.3

2011-04-13 Thread Rafael Martinez
On Wed, 2011-04-13 at 06:28 -0700, Adrian Klaver wrote: > On Wednesday, April 13, 2011 6:09:25 am Rafael Martinez wrote: > > Might want to take a look at: > [..] > sequence). If, due to a short-term peak of log output rate, there are > more than 3 * checkpoint_segments

[GENERAL] Weird WAL problem - 9.0.3

2011-04-13 Thread Rafael Martinez
his system: PostgreSQL 9.0.3 - ext4 - RHEL5.6 - 2.6.18-238.5.1.el5 - x86_64 checkpoint_segments: 128 wal_buffers: 512kB wal_level: archive wal_sync_method: fdatasync shared_buffers: 10GB regards,

Re: [GENERAL] The case of PostgreSQL on NFS Server

2010-06-24 Thread Rafael Martinez
be things have improved since last time we testet. regards, -- Rafael Martinez, Center for Information Technology Services University of Oslo, Norway PGP Public Key: http://folk.uio.no/rafael/ -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Problems with 8.4, FLOAT8PASSBYVAL and x86_64 GNU/Linux

2009-07-16 Thread Rafael Martinez
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Marko Kreen wrote: > On 7/16/09, Rafael Martinez wrote: >> >> Any other ideas? >> > >> > The version you compile against is not the version you have running. >> > >> >> Well, the only ver

Re: [GENERAL] Problems with 8.4, FLOAT8PASSBYVAL and x86_64 GNU/Linux

2009-07-16 Thread Rafael Martinez
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Marko Kreen wrote: > On 7/16/09, Rafael Martinez wrote: >> Peter Eisentraut wrote: >> > >> > You need to recompile your module. >> >> We recompile the module automatically when a new postgres cluster

Re: [GENERAL] Problems with 8.4, FLOAT8PASSBYVAL and x86_64 GNU/Linux

2009-07-16 Thread Rafael Martinez
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter Eisentraut wrote: > On Thursday 16 July 2009 12:14:48 Rafael Martinez wrote: >> ERROR: incompatible library "/usr/local/lib/pg_uname_8.4.so": magic >> block mismatch >> DETAIL: Server has FLOAT8PASSBYVAL = tr

[GENERAL] Autovacuum and pg_stat_reset()

2009-07-16 Thread Rafael Martinez
statistics autovacuum uses to find out what to do and when this should be done? Can the use of pg_stat_reset() affect performance in any way? regards, - -- Rafael Martinez, Center for Information Technology Services University of Oslo, Norway PGP Public Key: http://folk.uio.no/rafael/

[GENERAL] Problems with 8.4, FLOAT8PASSBYVAL and x86_64 GNU/Linux

2009-07-16 Thread Rafael Martinez
_VARSIZE(result, strlen(uname_pointer.machine) + VARHDRSZ); memcpy(VARDATA(result),uname_pointer.machine,strlen(uname_pointer.machine)); } else{ memcpy(VARDATA(result),null,sizeof(null)); } pfree(option); PG_RETURN_TEXT_P(result); } - --

Re: [GENERAL] pg_stat_reset() not resetting all statistics counters

2009-07-15 Thread Rafael Martinez
Brad Nicholson wrote: > On Wed, 2009-07-15 at 14:13 +0200, Rafael Martinez wrote: >> Hello >> >> Should not the execution of pg_stat_reset() reset *all* statistics >> counters everywhere in the database? > > It only resets the stats for the current datab

Re: [GENERAL] pg_stat_reset() not resetting all statistics counters

2009-07-15 Thread Rafael Martinez
Rafael Martinez wrote: > But when we execute pg_stat_reset() in our databases, not all values > reported by pg_stat_database get updated. tup_returned, tup_fetched, > tup_inserted, tup_updated and tup_deleted still have the old values > after running pg_stat_reset(). > > Am

[GENERAL] pg_stat_reset() not resetting all statistics counters

2009-07-15 Thread Rafael Martinez
tname | rtprod numbackends | 40 xact_commit | 1 xact_rollback | 2 blks_read | 60 blks_hit | 264238 tup_returned | 1742832161264 tup_fetched | 67407042466 tup_inserted | 54681617 tup_updated | 11495340 tup_deleted | 18167979 Any ideas? regards, -- Rafael Martinez, Ce

Re: [GENERAL] nagios -- number of postgres connections

2009-06-16 Thread Rafael Martinez
Rafael Martinez wrote: > Whit Armstrong wrote: >> anyone know a way to get nagios to monitor the number of postgres >> connections? >> >> Thanks, >> Whit >> > > Hello > > We use this plugin. Save it under /etc/munin/plugins/pg_connections and

Re: [GENERAL] nagios -- number of postgres connections

2009-06-16 Thread Rafael Martinez
vity" ----- PS.- You have to update the PATHS with the values in your system, and the user postgres needs access to your database, for this plugin to work. regards, -- Rafael Martinez, Center for Information Technology Services University of Oslo, Norway PGP Public Key: http://folk.uio.no/rafael/ -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] two or more pg installations running as the same user

2008-11-25 Thread Rafael Martinez
ent unix_socket_directory values for each cluster running on the same server. We connect mostly via tcp/ip and not via sockets, this way the clients do not have to remember the port running their databases. Of course the initdb and start steps are the same as Filip has commented. regards, --

Re: [GENERAL] hola mundo

2008-11-24 Thread Rafael Martinez
Y columna_con_valores ORDER BY cnt. [1]: http://www.postgresql.org/docs/8.3/interactive/functions-aggregate.html -- Rafael Martinez, <[EMAIL PROTECTED]> Center for Information Technology Services University of Oslo, Norway PGP Public Key: http://folk.uio.no/rafael/ -- Sent via pgsql-general mailing li

Re: [GENERAL] Using Postgres to store high volume streams of sensor readings

2008-11-21 Thread Rafael Martinez
ctive_cache_size = 1024MB > 50% of your RAM. 4GB in the test machine (if it is a dedicated postgres server). It will probably help read-rate. In addition, I will try to change these parameters also: wal_buffers = 64 random_page_cost = 2.0 In general, faster and more disks in a RAID 1+0 / 0+

Re: [GENERAL] Problems with a C function, pg_uname(), and String concatenation.

2008-07-01 Thread Rafael Martinez
Pavel Stehule wrote: 2008/7/1 Rafael Martinez <[EMAIL PROTECTED]>: Pavel Stehule wrote: hello try memcpy(VARDATA(result),uname_pointer.release,strlen(uname_pointer.release)); SET_VARSIZE(result, strlen(uname_pointer.release) + VARHDRSZ); [.] This a 8.2.x system. SET_VARSIZE

Re: [GENERAL] Problems with a C function, pg_uname(), and String concatenation.

2008-07-01 Thread Rafael Martinez
Pavel Stehule wrote: hello try memcpy(VARDATA(result),uname_pointer.release,strlen(uname_pointer.release)); SET_VARSIZE(result, strlen(uname_pointer.release) + VARHDRSZ); [.] This a 8.2.x system. SET_VARSIZE is not available. Thanks for your time. regards -- Rafael Martinez

[GENERAL] Problems with a C function, pg_uname(), and String concatenation.

2008-07-01 Thread Rafael Martinez
ver) CFLAGS = $(SERVER_INCLUDES) CC = gcc pg_uname: pg_uname.c $(CC) $(CFLAGS) -fpic -c $< $(CC) $(CFLAGS) -shared -o $(basename $<).so $(basename $<).o --- regards -- Rafael Martinez, <[EMAIL PROTECTED]> Center for Information Technology Services University of Osl

[GENERAL] alter database tablespace

2007-10-23 Thread Rafael Martinez
Hello I am wondering if 8.4 is going to implement this: ALTER DATABASE name SET TABLESPACE new_tablespace I cannot find information in the todo list about the priority or release that would implement this feature. regards -- Rafael Martinez, <[EMAIL PROTECTED]> Center for Infor

[GENERAL] Problems with "anyelement" after upgrading from 8.1.4 to 8.1.9

2007-05-27 Thread Rafael Martinez
advance. -- Rafael Martinez, <[EMAIL PROTECTED]> Center for Information Technology Services University of Oslo, Norway PGP Public Key: http://folk.uio.no/rafael/> ---(end of broadcast)--- TIP 1: if posting/reading through Usenet, pleas

Re: [GENERAL] How to set UTF8 to query browser of PgAdmin III

2007-02-12 Thread Rafael Martinez, Guerrero
in to load correctly UTF8 files? > Hello We have 'client_encoding = iso8859-1' in our postgresql.conf to see properly our 'special' characters when the database is utf8. I suppose you will have to choose the correct encoding for your language too insteed of utf8. -- Rafae

[GENERAL] 8.1.4 - problem with PITR - .backup.done / backup.ready version of the same file at the same time.

2006-05-30 Thread Rafael Martinez, Guerrero
pen, anyone has seen this problem before? Ideas?, tips? to find why this happened. -- Rafael Martinez, <[EMAIL PROTECTED]> Center for Information Technology Services University of Oslo, Norway PGP Public Key: http://folk.uio.no/rafael/ ---(end of broadcast)---

Re: [GENERAL] "make check" fails over NFS or tmpfs

2006-05-22 Thread Rafael Martinez, Guerrero
On Mon, 2006-05-22 at 11:00, Peter Eisentraut wrote: > Am Montag, 22. Mai 2006 09:17 schrieb Rafael Martinez, Guerrero: > > To have a database on a NFS filesystem is a disaster waiting to happen, > > specially if the NFS server is running on Linux. Not to talk on the > > p

Re: [GENERAL] "make check" fails over NFS or tmpfs

2006-05-22 Thread Rafael Martinez, Guerrero
7;noac' I was thinking about two processes trying to access the same file at the same time, better not to have some cache in our way that alter the real state of the file to other processes. -- Rafael Martinez, <[EMAIL PROTECTED]> Center for Information Technology Services Univers

Re: [GENERAL] "make check" fails over NFS or tmpfs

2006-05-22 Thread Rafael Martinez, Guerrero
use hard and turn off all cache . In the server side we are talking about 'sync' and 'no_wdelay' parameters and in the client about 'bg','hard','intr','noac' and 'tcp', probably the throughput will improve by increasing

Re: [GENERAL] Weird ..... (a=1 or a=2) <> (a=2 or a=1)

2006-05-16 Thread Rafael Martinez
On Tue, 2006-05-16 at 13:01 -0400, Tom Lane wrote: > Rafael Martinez <[EMAIL PROTECTED]> writes: > > On Tue, 2006-05-16 at 11:14 -0400, Tom Lane wrote: > >> So much for that theory. If you copy the table (create table foo as > >> select * from tickets) and build

Re: [GENERAL] Weird ..... (a=1 or a=2) <> (a=2 or a=1)

2006-05-16 Thread Rafael Martinez
On Tue, 2006-05-16 at 12:32 -0400, Tom Lane wrote: > Rafael Martinez <[EMAIL PROTECTED]> writes: > > On Tue, 2006-05-16 at 11:14 -0400, Tom Lane wrote: > >> I suspect this may be a question of a corrupt index, in which case > >> REINDEXing the index being used woul

Re: [GENERAL] Weird ..... (a=1 or a=2) <> (a=2 or a=1)

2006-05-16 Thread Rafael Martinez
On Tue, 2006-05-16 at 11:14 -0400, Tom Lane wrote: > "Rafael Martinez, Guerrero" <[EMAIL PROTECTED]> writes: > > I have found out the sql statement with 'problems'. Can anybody explain > > me why A) returns 12 rows and B) returns 13 rows?. The only differen

[GENERAL] Weird ..... (a=1 or a=2) <> (a=2 or a=1)

2006-05-16 Thread Rafael Martinez, Guerrero
kets main (cost=0.00..1658.82 rows=1 width=33) (actual time=0.790..3.909 rows=13 loops=1) Index Cond: (((status)::text = 'new'::text) OR ((status)::text = 'open'::text)) Filter: ((effectiveid = id) AND ((status)::text <> '

Re: [GENERAL] after vacuum, db is still "growing" :(

2005-12-09 Thread Rafael Martinez Guerrero
his, do we have any plans, is it better with 8.0 or 8.1? Thanks in advance for your answers :) -- Rafael Martinez, <[EMAIL PROTECTED]> Center for Information Technology Services University of Oslo, Norway PGP Public Key: http://folk.uio.no/rafael/ signature.asc Description: This is a digitally signed message part

[GENERAL] Lines of code in PG 8.0 & 8.1?

2005-09-22 Thread Rafael Martinez
in advance. [1] http://candle.pha.pa.us/ - PostgreSQL: Past, Present, and Future (Bruce Momjian) -- Rafael Martinez, <[EMAIL PROTECTED]> Center for Information Technology Services University of Oslo, Norway PGP Public Key: http://folk.uio.no/rafael/ signature.asc Descri

Re: [GENERAL] pg_dump large-file support > 16GB

2005-03-21 Thread Rafael Martinez Guerrero
On Fri, 2005-03-18 at 15:58, Tom Lane wrote: > Rafael Martinez <[EMAIL PROTECTED]> writes: > > On Thu, 2005-03-17 at 10:17 -0500, Tom Lane wrote: > >> Is that a plain text, tar, or custom dump (-Ft or -Fc)? Is the behavior > >> different if you just write

Re: [GENERAL] pg_dump large-file support > 16GB

2005-03-18 Thread Rafael Martinez
On Fri, 2005-03-18 at 09:58 -0500, Tom Lane wrote: > Rafael Martinez <[EMAIL PROTECTED]> writes: > > On Thu, 2005-03-17 at 10:17 -0500, Tom Lane wrote: > >> Is that a plain text, tar, or custom dump (-Ft or -Fc)? Is the behavior > >> different if you just write

Re: [GENERAL] pg_dump large-file support > 16GB

2005-03-18 Thread Rafael Martinez
problem with the filesystem we are using. > Would it be > possible to even implement that at you site at this stage ? > We can not do this if we want support from our "operative system departament", they do not support XFS at the present. -- Rafael Martinez, <[EMAIL PROTE

Re: [GENERAL] pg_dump large-file support > 16GB

2005-03-18 Thread Rafael Martinez
On Thu, 2005-03-17 at 10:17 -0500, Tom Lane wrote: > Rafael Martinez Guerrero <[EMAIL PROTECTED]> writes: > > We are trying to dump a 30GB+ database using pg_dump with the --file > > option. In the beginning everything works fine, pg_dump runs and we get > > a dumpfile.

Re: [GENERAL] pg_dump large-file support > 16GB

2005-03-17 Thread Rafael Martinez Guerrero
On Thu, 2005-03-17 at 15:09, Lonni J Friedman wrote: > On Thu, 17 Mar 2005 14:05:35 +0100, Rafael Martinez Guerrero > <[EMAIL PROTECTED]> wrote: > > Hello > > > > We are having problems with pg_dump. > > > > We are trying to dump a 30GB+ database using

Re: [GENERAL] pg_dump large-file support > 16GB

2005-03-17 Thread Rafael Martinez Guerrero
Inodes per group: 16384 Inode blocks per group: 512 --- Regards. -- Rafael Martinez, <[EMAIL PROTECTED]> Center for Information Technology Services University of Oslo, Norway PGP Public Key: http://folk.uio.no/rafael/ signature.asc

[GENERAL] pg_dump large-file support > 16GB

2005-03-17 Thread Rafael Martinez Guerrero
? -- Rafael Martinez, <[EMAIL PROTECTED]> Center for Information Technology Services University of Oslo, Norway PGP Public Key: http://folk.uio.no/rafael/ signature.asc Description: This is a digitally signed message part

[GENERAL] Point-in-time data recovery - v.7.4

2003-11-18 Thread Rafael Martinez Guerrero
body knows when this functionality will be available with prod-quality? -- With regards Rafael Martinez USIT, University of Oslo ---(end of broadcast)--- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]