Re: [GENERAL] Problem after replication switchover

2016-04-07 Thread Lars Arvidson
you just have a hardware problem with your > storage. We use fusionio ssd cards for storage. If there is something wrong with them I would expect more problems than I am currently experiencing, and more random problems... /Lars -- Sent via pgsql-general mailing list (pgsql-ge

Re: [GENERAL] Problem after replication switchover

2016-04-06 Thread Lars Arvidson
archived log file give the symptoms we are seeing? Would not Postgresql detect that the logfile was corrupt? Are there some way I can analyze archived logs files to see if this is the problem? Regards Lars Arvidson -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make ch

[GENERAL] Problem after replication switchover

2016-04-05 Thread Lars Arvidson
only have one log row and that looks similar to the other once and it was triggered by an insert "ERROR: could not read block 2023 in file "base/16390/22841": read only 0 of 8192 bytes". The offending file was an index. This problem was fixed with a VACCUM FULL on the table

Re: [GENERAL] Index only scan

2012-10-11 Thread Lars Helge Øverland
Thanks all for the help and insights. I will continue to read up on the details of partitioning and pgpool. best regards, Lars On Thu, Oct 11, 2012 at 2:47 AM, Gavin Flower wrote: > On 11/10/12 12:41, Tom Lane wrote: >> >> Gavin Flower writes: >>> >>> On 11

[GENERAL] Index only scan

2012-10-10 Thread Lars Helge Øverland
best practices? best regards, Lars Helge Øverland -- 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] Using LDAP roles in PostgreSQL

2011-07-13 Thread Lars Kanis
ment to the list there as well as a > potentially useful tool. I figure it is worth noting this on the list > because I can't imagine I am the only one doing this. Yes, thanks. I could announce it too, in case the list is writeable for me. -- Regards, Lars Kanis -- Sent via pgsql-general

[GENERAL] Using LDAP roles in PostgreSQL

2011-07-13 Thread Lars Kanis
y) or postgres-pr.gem (pure Ruby) * Test mode which doesn’t do any changes to the DBMS Homepage: https://github.com/larskanis/pg-ldap-sync Is it something useful for someone apart of mine? -- Kind regards, Lars Kanis -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make ch

[GENERAL] Configure server firewall request/response

2009-05-29 Thread Carlsson, Lars
backend;" I check the firewall logs and it seems like some responses get blocked in the firewall could this be slow response or some kind of keep alive response. Are there some settings to make the Pgsql db server to work better with a firewall request/response the KeepAlive is turned off.

[GENERAL] [Windows 2008 / 8.3] service account creation failure *SOLVED*

2008-11-12 Thread Lars Andersen
for 8.2.5, it installed fine. Then I uninstalled 8.2.5 and launched the installer for 8.3 again, this time using the same complex password I had successfully used to get 8.2.5 running - and voila, the install goes just fine. Really too bad that the new installer does not specify why the creation fa

Re: [GENERAL] Oracle and Postgresql

2008-09-04 Thread Lars Haugseth
ng buying these. However, I'm probably going to kill myself if I find a new edition for sale only a short while after I've bought them. Are there any plans to release an updated set in the near future? -- Lars Haugseth "If anyone disagrees with anything I say, I am quite prepared no

Re: [GENERAL] vacuum, dead rows, usual solutions didn't help

2008-01-10 Thread Lars Heidieker
ituation is a transaction that touches the rows in a transaction and keeps the transaction alive before vacuum runs. - -- Viele Grüße, Lars Heidieker [EMAIL PROTECTED] http://paradoxon.info - Mystische Erklärungen: Die mystischen Erklärungen gelten für tie

Re: [GENERAL] Duplicating a table row while honouring key constraints

2007-11-12 Thread Lars Haugseth
let the database work out the new primary key itself. If your primary key is a column named 'id' of type 'serial', you can copy a record like this: INSERT INTO my_table SELECT nextval('table_name_id_seq'), foo, bar, baz, ... FROM my_table WHERE id = -- L

Re: [GENERAL] Using C API

2007-10-14 Thread Lars Heidieker
-lpq -- Viele Grüße, Lars Heidieker [EMAIL PROTECTED] http://paradoxon.info Mystische Erklärungen. Die mystischen Erklärungen gelten für tief; die Wahrheit ist, dass sie noch nicht einmal oberflächlich sind. -- Friedrich Nietzsche PGP.sig Descrip

Re: [GENERAL] PostgreSQL clustering (shared disk)

2007-08-20 Thread Lars Ellenberg
t mean we don't like postgres very much indeed :) to get an idea of what drbd does for you, please, if you are interessted, read some of the http://www.drbd.org/publications.html, maybe start with the LinuxConf 2007 pdf. cheers, -- : Lars EllenbergTel +43-1-8178

Re: [GENERAL] passing passords to pgsql/pg_create/pg_dump programmatically

2007-03-20 Thread Lars Haugseth
u can see, all of these command line utilities accept the -W parameter followed by the password. Alternatively you can configure PostgreSQL to allow connections from certain clients without password authentication: http://www.postgresql.org/docs/8.2/static/client-authentication.html -- Lars Haugs

Re: [GENERAL] Hardware

2007-02-06 Thread Lars Heidieker
ms to be outdated. As far as I know it was supposed to warn for the HyperThreading things. - -- Viele Grüße, Lars Heidieker [EMAIL PROTECTED] http://paradoxon.info - Mystische Erklärungen. Die mystischen Erklärungen gelten für tief; die Wahrheit ist, das

Re: [GENERAL] Stored Procedure and Trigger they puzzle me

2006-12-20 Thread Lars Heidieker
h (ltlocation_id, ltlocancester_id) VALUES (new.id, workid); SELECT INTO workid parent FROM ltlocation WHERE id = workid; END LOOP; END IF; RETURN new; END; $$ LANGUAGE plpgsql; So it handles only the cases the foreign keys can't an

Re: [GENERAL] Stored Procedure and Trigger they puzzle me

2006-12-19 Thread Lars Heidieker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 19 Dec 2006, at 10:30, Lars Heidieker wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 19 Dec 2006, at 08:56, Alban Hertroys wrote: Not sure as I deleted them before, but currently I cant reproduce it. I just get the following

Re: [GENERAL] Stored Procedure and Trigger they puzzle me

2006-12-19 Thread Lars Heidieker
erstanding. Thanks, yes the ltlocancester_id is invalid as it was changed by the foreign key constraint before, in the end it turned out to be some bad interaction between the trigger and the foreign key constraint, as Albe Laurenz found out. That's where I got confused. (Yes, u

Re: [GENERAL] Stored Procedure and Trigger they puzzle me

2006-12-19 Thread Lars Heidieker
key constraint. So it makes sense to rewrite the trigger to take only care of those cases that aren't handled by the cascading foreign keys. - -- Viele Grüße, Lars Heidieker [EMAIL PROTECTED] http://paradoxon.info - Mystische Erklärungen. Die mys

Re: [GENERAL] Stored Procedure and Trigger they puzzle me

2006-12-18 Thread Lars Heidieker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 18 Dec 2006, at 09:37, Alban Hertroys wrote: Lars Heidieker wrote: Hi all, I just started to write my first stored procedure in plpgsql and installed a trigger for it. The two Tables are: CREATE TABLE ltlocation ( "id" integ

Re: [GENERAL] Stored Procedure and Trigger they puzzle me

2006-12-18 Thread Lars Heidieker
g Alban Hertroys suggested to get an better understanding of what is going on. - -- Viele Grüße, Lars Heidieker [EMAIL PROTECTED] http://paradoxon.info - Mystische Erklärungen. Die mystischen Erklärungen gelten für tief; die Wahrheit ist, dass sie noch n

[GENERAL] Stored Procedure and Trigger they puzzle me

2006-12-16 Thread Lars Heidieker
rialized path eg for the values (25, 25) It works OK with ignoring the exception but why is the exception thrown in the first place. The postgresql version 8.1.5 - -- Viele Grüße, Lars Heidieker [EMAIL PROTECTED] http://paradoxon.info - Mystische Erkl

Re: [GENERAL] FK pointing to a VIEW

2006-11-28 Thread Lars Heidieker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 28 Nov 2006, at 13:33, Olexandr Melnyk wrote: Looks like I've missed your mail, so a late reply. 2006/11/11, Lars Heidieker <[EMAIL PROTECTED]>: > > > While I agree in principle that such a thing should be > > &g

Re: [GENERAL] FK pointing to a VIEW

2006-11-10 Thread Lars Heidieker
ething ? - -- Viele Grüße, Lars Heidieker [EMAIL PROTECTED] http://paradoxon.info - Mystische Erklärungen. Die mystischen Erklärungen gelten für tief; die Wahrheit ist, dass sie noch nicht einmal oberflächlich sind. -- Friedrich Nietzsche --

Re: [GENERAL] Compound words giving undesirable results with tsearch2

2006-05-30 Thread Lars Haugseth
* oleg@sai.msu.su (Oleg Bartunov) wrote: | | On Tue, 30 May 2006, Lars Haugseth wrote: | | > I've setup a database using tsearch2, configured with support for compound | > words according to the excellent guide found here: | > | > http://www.sai.msu.su/~megera/

[GENERAL] Compound words giving undesirable results with tsearch2

2006-05-30 Thread Lars Haugseth
s of the text being indexed. In many situations, this will lead to a lot of 'false' matches, seen from a user perspective. Ideas on how to handle this problem will be much appreciated. -- Lars Haugseth "If anyone disagrees with anything I say, I am quite prepared not only

Re: [GENERAL] Default value if query returns 0 rows?

2004-09-17 Thread Lars Kellogg-Stedman
t one match you can use a subselect and coalesce. > Bruno, Thanks for the suggestion. I've come up with the following that appears to work: SELECT COALESCE((SELECT id FROM map WHERE name = $1), -1) FROM map_level LIMIT 1 -- Lars -- Lars Kellogg

[GENERAL] Default value if query returns 0 rows?

2004-09-17 Thread Lars Kellogg-Stedman
xpressions, but the fact that a missing value returns 0 rows continues to foil me. Thanks, -- Lars -- Lars Kellogg-Stedman <[EMAIL PROTECTED]> ---(end of broadcast)--- TIP 2: you can get off all lists at once with the unregister command

Re: [GENERAL] psql + autocommit

2004-09-17 Thread Lars Haugseth
* Michael Paesold: | Peter Eisentraut wrote: | > Lars Haugseth wrote: | > > Version 8.0.0beta2 supports a global configuration file. It's should | > > be located in '~postgres/etc/pgsql'. | > | > That would be pretty useless, since normal users often don'

Re: [GENERAL] pg_dump in cycle

2004-09-17 Thread Lars Haugseth
-17 14:00 foo.pg_dump -rw-r--r--1 postgres users3326 2004-09-17 14:00 test.pg_dump -- Lars Haugseth ---(end of broadcast)--- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])

Re: [GENERAL] psql + autocommit

2004-09-16 Thread Lars Haugseth
e located in '~postgres/etc/pgsql'. -- Lars Haugseth ---(end of broadcast)--- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])

[GENERAL] stability problems

2001-03-30 Thread Lars Maschke
bout 10-15 postgres processes are on my linux machine. So what can i do ? My postgres-command is: /usr/lib/pgsql/bin/postmaster -B 2048 -i -o -F -D/var/lib/pgsql Thanks Lars ---(end of broadcast)--- TIP 6: Have you searched our list archi

Re: [GENERAL] Aggregate time data on half hour interval

2000-07-19 Thread Lars
It may be ugly, but it sure works! Here is my query: SELECT Date, interval(trunc(date_part('epoch', time)/1800) * 1800) AS HALFHOUR, SUM(Data) FROM Table GROUP BY Date, HALFHOUR; This seems to work great, and I don't see any performance hit either. Thanks, -Lars On Thu, 20 Jul

[GENERAL] Aggregate time data on half hour interval

2000-07-19 Thread Lars
utes. Does anyone know a good way to do this? Thanks in advance, -Lars