Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1ToQTB-0007Y4-1B for pgsql-sql@arkaria.postgresql.org; Fri, 28 Dec 2012 03:18:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1ToQTA-0007ZG-15 for pgsql-sql@arkaria.postgresql.org; Fri, 28 Dec 2012 03:18:48 +0000 Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1ToGDN-0003vv-FR for pgsql-sql@postgresql.org; Thu, 27 Dec 2012 16:21:49 +0000 Received: from mbx.knossos.net.nz ([202.160.48.10]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1ToGDF-0000Dg-Qf for pgsql-sql@postgresql.org; Thu, 27 Dec 2012 16:21:49 +0000 Received: from [10.1.1.3] (60-234-150-59.bitstream.orcon.net.nz [60.234.150.59]) (authenticated bits=0) by mbx.knossos.net.nz (8.14.4/8.14.4) with ESMTP id qBRGLUYD027120 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 28 Dec 2012 05:21:31 +1300 Message-ID: <50DC758D.9010309@archidevsys.co.nz> Date: Fri, 28 Dec 2012 05:21:33 +1300 From: Gavin Flower Organization: ArchiDevSys User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: johnf@jfcomputer.com CC: "pgsql-sql@postgresql.org" Subject: Re: strange corruption? References: <50DC5AD0.3040507@jfcomputer.com> In-Reply-To: <50DC5AD0.3040507@jfcomputer.com> Content-Type: multipart/alternative; boundary="------------090206040803080608040309" X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org This is a multi-part message in MIME format. --------------090206040803080608040309 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 28/12/12 03:27, John Fabiani wrote: > Hi, > I have the following statement in a function. > > UPDATE orderseq > SET orderseq_number = (orderseq_number + 1) > WHERE (orderseq_name='InvcNumber'); > > All it does is update a single record by incrementing a value (int). > > But it never completes. This has to be some sort of bug. Anyone have > a thought what would cause this to occur. To my knowledge it was > working and does work in other databases. > > Johnf > > It might help if you give the table definition. Definitely important: is the exact version of PostgreSQL used, and the operating system. Cheers, Gavin --------------090206040803080608040309 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
On 28/12/12 03:27, John Fabiani wrote:
Hi,
I have the following statement in a function.

    UPDATE orderseq
    SET orderseq_number = (orderseq_number + 1)
    WHERE (orderseq_name='InvcNumber');

All it does is update a single record by incrementing a value (int).

But it never completes.  This has to be some sort of bug.  Anyone have a thought what would cause this to occur.  To my knowledge it was working and does work in other databases.

Johnf


It might help if you give the table definition.

Definitely important: is the exact version of PostgreSQL used, and the operating system.


Cheers,
Gavin --------------090206040803080608040309--