Re: [GENERAL] Using the database to validate data

2015-07-25 Thread Jon Lapham
o validate data integrity *before* putting it into the database. If there is a problem with any part of the data, I don't want any of it in the database. -Jon -- -**-*-*---*-*---*-*---*-*-*-*---*-*---*-*-*-*-*--- Jon Lapham Rio de Janeiro, Brasil

Re: [GENERAL] Mediawiki 1.10 and PG 8.3 upgrade

2008-05-30 Thread Jon Lapham
Tom Lane wrote: Jon Lapham <[EMAIL PROTECTED]> writes: Have I (very possible) missed some official PostgreSQL instructions? http://www.postgresql.org/docs/8.3/static/textsearch-migration.html http://www.postgresql.org/docs/8.3/static/tsearch2.html I haven't personally tried tha

Re: [GENERAL] Mediawiki 1.10 and PG 8.3 upgrade

2008-05-30 Thread Jon Lapham
Joshua D. Drake wrote: Jon Lapham wrote: How are we, Joe PostgreSQL users on the street, supposed to know which instructions to follow? Have I (very possible) missed some official That would be a question for mediawiki people not PostgreSQL people. Okay, makes sense. It just seemed to me

[GENERAL] Mediawiki 1.10 and PG 8.3 upgrade

2008-05-30 Thread Jon Lapham
ere are others. The one common thread shared by all the instructions are that they say different things. How are we, Joe PostgreSQL users on the street, supposed to know which instructions to follow? Have I (very possible) missed some official PostgreSQL instructions? How do we go about tri

Re: [GENERAL] tsearch2 upgrade problem and mediawiki

2007-08-02 Thread Jon Lapham
oblem. -- -**-*-*---*-*---*-*---*-*-*-*---*-*---*-*-*-*-*--- Jon Lapham <[EMAIL PROTECTED]>Rio de Janeiro, Brasil Personal: http://www.jandr.org/ ***-*--**---***--- ---(end of broadcast)--- TIP 3: Have you checked our ex

[GENERAL] tsearch2 upgrade problem and mediawiki

2007-08-02 Thread Jon Lapham
HEN NEW.textvector := to_tsvector('default',NEW.old_text); END IF; RETURN NEW; END; This looks like a problem with tsearch2 to me... can anyone give me a pointer on where to go from here to debug this? Thanks! -Jon -- -**-*-*---*-*---*-*---*-*-*-*---

Re: [GENERAL] Restart after poweroutage

2007-07-02 Thread Jon Lapham
Tom Lane wrote: Some time ago, Jon Lapham <[EMAIL PROTECTED]> wrote: Today I had a power outage which upon reboot seems to have done something to cause Postgresql to not restart properly. This has happened to me before: http://archives.postgresql.org/pgsql-general/2006-09/msg00938.ph

Re: [GENERAL] Restart after poweroutage

2007-03-13 Thread Jon Lapham
cessor : 0 vendor_id : AuthenticAMD cpu family : 15 model : 44 model name : AMD Athlon(tm) 64 Processor 3200+ FWIW: The kernel says SMP, but it is a single core processor. -- -**-*-*---*-*---*-*---*-*-*-*---*-*---*-*-*-*-*--- Jon Lapham <[EMAIL

Re: [GENERAL] Restart after poweroutage

2007-03-13 Thread Jon Lapham
Tom Lane wrote: Jon Lapham <[EMAIL PROTECTED]> writes: Tom Lane wrote: It would seem that maybe your kernel has a different idea of what EIDRM means than we do. You say this persists across a reboot? I probably should have asked before doing this... but I just rebooted and postgresq

Re: [GENERAL] Restart after poweroutage

2007-03-13 Thread Jon Lapham
p the forensics. So, on the second boot postgresql starts as it should (the first boot being when I powered up after the power outage). -- -**-*-*---*-*---*-*---*-*-*-*---*-*---*-*-*-*-*--- Jon Lapham <[EMAIL PROTECTED]>Rio de Janeiro, Brasil Personal:

Re: [GENERAL] Restart after poweroutage

2007-03-13 Thread Jon Lapham
Tom Lane wrote: Jon Lapham <[EMAIL PROTECTED]> writes: Tom Lane wrote: Let's see the output from sudo ipcs -a [EMAIL PROTECTED] ~]# ipcs -a [ no postgres-owned segments... ] Well, that's dang interesting. Could you run the postmaster under strace and send the output?

Re: [GENERAL] Restart after poweroutage

2007-03-13 Thread Jon Lapham
Tom Lane wrote: Jon Lapham <[EMAIL PROTECTED]> writes: What can I do to help diagnose what is happening? Let's see the output from ps auxww | grep postgres sudo ipcs -a [EMAIL PROTECTED] ~]# ps auxww | grep postgres root 3969 0.0 0.0 60272 688 pts/1R+ 15:47

[GENERAL] Restart after poweroutage

2007-03-13 Thread Jon Lapham
red memory block with the command "ipcclean", "ipcrm", or just delete the file "postmaster.pid". -- -**-*-*---*-*---*-*---*-*-*-----*---*-*---*-*-*-*-*--- Jon Lapham <[EMAIL PROTECTED]>Rio de J

Re: [GENERAL] Restart after power outage: createdb

2006-09-27 Thread Jon Lapham
, issue the commands, etc. -- -**-*-*---*-*---*-*---*-*-*-*---*-*---*-*-----*-*-*--- Jon Lapham <[EMAIL PROTECTED]>Rio de Janeiro, Brasil Personal: http://www.jandr.org/ ***-*--**---***---

Re: [GENERAL] Restart after poweroutage

2006-09-26 Thread Jon Lapham
Tom Lane wrote: Jon Lapham <[EMAIL PROTECTED]> writes: To stress test, I turned off the power while actively processing db operations, such as: loading data into a database, create a new database, delete contents of a large table within a transaction. Anyway, in every case I cou

Re: [GENERAL] Restart after poweroutage

2006-09-26 Thread Jon Lapham
e FC5 (in this case) VM instance to run through its shutdown procedure, and takes 15 seconds or so to shutdown. I am using "power off". -- -**-*-*---*-*---*-*---*-*-*-*---*-*---*-*-*-*-*--- Jon La

Re: [GENERAL] Restart after poweroutage

2006-09-26 Thread Jon Lapham
Tom Lane wrote: Jon Lapham <[EMAIL PROTECTED]> writes: Is it important for you to know that at the time of the power outage, I *did* have 2 closed source kernel modules loaded, vmware's and NVidia's. (This is a development machine, not production...). Could one of these mo

[GENERAL] Restart after power outage: createdb

2006-09-26 Thread Jon Lapham
[EMAIL PROTECTED] ~]$ createdb bar CREATE DATABASE So, running "createdb bar" a second time works. This is probably not a bug, but I thought I'd mention it anyway as it could potentially cause problems for people running scripts. -- -**-*-*---*-*---*-*---*-*-*-*---*-*---

Re: [GENERAL] Restart after poweroutage

2006-09-26 Thread Jon Lapham
Tom Lane wrote: Adrian Klaver <[EMAIL PROTECTED]> writes: On Sunday 24 September 2006 09:17 am, Tom Lane wrote: Jon Lapham <[EMAIL PROTECTED]> writes: FATAL: pre-existing shared memory block (key 5432001, ID 65536) is still in use This is extremely odd, because a shared memory

Re: [GENERAL] Restart after poweroutage

2006-09-24 Thread Jon Lapham
Tom Lane wrote: Jon Lapham <[EMAIL PROTECTED]> writes: I recently had another electrical power outage that left my machine unable to restart postgresql. I had previously reported this a while ago: http://archives.postgresql.org/pgsql-general/2005-04/msg01286.php Anyway, because

[GENERAL] Restart after poweroutage

2006-09-24 Thread Jon Lapham
postgresql start Starting postgresql service: [ OK ] PS: This email is just a FYI, not a complaint. Maybe it is just a right of passage that users of postgresql will just have to learn about this. -- -**-*-*---*-*---*-*---*-*-*-*---*-*---*-*-*-*-*--- Jon Lapham <

Re: [GENERAL] A few questions about carriage returns (\r)

2006-06-15 Thread Jon Lapham
'm blind, I didn't see this in the docs. :) -Jon -- -**-*-*---*-*---*-*---*-*-*-*---*-*---*-*-*-*-*--- Jon Lapham <[EMAIL PROTECTED]>Rio de Janeiro, Brasil Personal: http://www.jandr.org/ ***-*--**---***--- ---(end of broadcast)--

[GENERAL] A few questions about carriage returns (\r)

2006-06-15 Thread Jon Lapham
bove. Extra information that may be useful: test=> select version(); version - PostgreSQL 8.1.4 on i386-redhat-linux-gnu, compiled by GCC i386-re

Re: [GENERAL] md5 hash on table row

2005-11-02 Thread Jon Lapham
ars of using PostgreSQL, I did not know you can "SELECT tablename FROM tablename". Thanks Michael. PS: Does anyone know if this very portable to other databases? -Jon -- -**-*-*---*-*---*-*---*-*-*-*---*-*---*-----*-*-*-*--- Jon Lapham <[EMAIL PROTECTED]>

[GENERAL] md5 hash on table row

2005-11-02 Thread Jon Lapham
thing like this: select id, md5(*) from mytable; ...which of course does not work. Thanks for any ideas! -Jon -- -**-*-*---*-*---*-*---*-*-*-*---*-*---*-*-*-*-*--- Jon Lapham <[EMAIL PROTECTED]>Rio de Janeiro, Brasil Personal:

Re: [GENERAL] How much slower are numerics?

2005-10-22 Thread Jon Lapham
t timeit(100); Time: 22145.408 ms But, this is less than a factor of 2 difference, similar to what one of the previous INSERT examples showed. Or am I missing something? -- -**-*-*---*-*---*-*---*-*-*-*---*-*---*-*-*-*-----*--- Jon Lapham <[EMAIL PROTECTED]>

Re: [GENERAL] restarting after power outage

2005-04-27 Thread Jon Lapham
Tom Lane wrote: Jon Lapham <[EMAIL PROTECTED]> writes: So, then it would be correct to change my init scripts to do the following: (if so, this patch can be applied to the 7.4 branch) I would recommend strongly AGAINST that, because what you just did was remove the defense against starti

Re: [GENERAL] restarting after power outage

2005-04-27 Thread Jon Lapham
Tom Lane wrote: Jon Lapham <[EMAIL PROTECTED]> writes: After a power outage (and bad UPS combo, or plug pull, or bad RAM, etc) sometimes (I would guess <10% of the time) postgresql fails to restart automatically after booting the computer. Invariably, it is because the "postma

[GENERAL] restarting after power outage

2005-04-27 Thread Jon Lapham
-q postgresql postgresql-7.4.7-3.FC3.1 -- -**-*-*---*-*---*-*---*-*-*-*---*-*---*-*-*-*-----*--- Jon Lapham <[EMAIL PROTECTED]>Rio de Janeiro, Brasil Personal: http://www.jandr.org/ ***-*--**---***---

Re: [GENERAL] Group By and wildcards...

2005-02-19 Thread Jon Lapham
Tom Lane wrote: Bruno Wolff III <[EMAIL PROTECTED]> writes: Jon Lapham <[EMAIL PROTECTED]> wrote: When using queries with aggregate functions, is there any way to not have to have to explicitly write all the columns names after the GROUP BY ? I would like to use a wildcard "

[GENERAL] Group By and wildcards...

2005-02-19 Thread Jon Lapham
any advice on how to handle this, -Jon PS: I'm using postgresql v7.4.x -- -**-*-*---*-*---*-*---*-*-*-*---*-*---*-----*-*-*-*--- Jon Lapham <[EMAIL PROTECTED]>Rio de Janeiro, Brasil

Re: [GENERAL] yet another db corruption issue (more info)

2001-10-18 Thread Jon Lapham
A simple rename command put everything back together again. Now I can sleep. -- -**-*-*---*-*---*-*---*-*-*-*---*-*---*-*-*-*-*--- Jon Lapham Extracta Moléculas Naturais, Rio de