Re: [GENERAL] Segmentation fault with core dump

2013-05-08 Thread Joshua Berry
| I'm using PG 9.1.9 with a client application using various versions of the | pgsqlODBC driver on Windows. Cursors are used heavily, as well as some pretty | heavy trigger queries on db writes which update several materialized views. | | The server has 48GB RAM installed, PG is configured for

Re: [GENERAL] Update

2013-04-11 Thread Joshua Berry
Am 11.04.2013 10:29, schrieb jpui: Hi, I'm running a server using postgres 8.3 and i was adviced to update it... what i have to do in order to update it and don't stop the service? 8.3 is out of support so you will need to at a very minimum 8.4. This cannot be done without restarting.

Re: [GENERAL] PostgreSQL Upgrade from 9.1.8 to 9.1.9

2013-04-11 Thread Joshua Berry
Hi Ascot, I am new to Postgresql, I have installed the Postgresql 9.1.8 in my ubuntu 12.04 machine and I found 9.1.9 was released last week, can someone advise me how to upgrade pg from 9.1.8 to 9.1.9? or, are the following commands correct for this upgrade? apt-get update apt-get upgrade

[GENERAL] Segmentation fault with core dump

2013-04-10 Thread Joshua Berry
Hi Group, I'm using PG 9.1.9 with a client application using various versions of the pgsqlODBC driver on Windows. Cursors are used heavily, as well as some pretty heavy trigger queries on db writes which update several materialized views. The server has 48GB RAM installed, PG is configured for

Re: [GENERAL] Segmentation fault with core dump

2013-04-10 Thread Joshua Berry
Hi Andres! On Wed, Apr 10, 2013 at 4:49 PM, Andres Freund and...@2ndquadrant.comwrote: Could you show the output of 'bt full'? Program terminated with signal 11, Segmentation fault. #0 ResourceOwnerEnlargeCatCacheRefs (owner=0x0) at resowner.c:605 605 if (owner-ncatrefs

Re: [GENERAL] Segmentation fault with core dump

2013-04-10 Thread Joshua Berry
Ok, so while we have a valid resource owner up to here, portal-resonwer is NULL. Could you 'up' until youre in this frame and then do 'print *portal'? #7 0x00638c78 in PortalRun (portal=0x2aa9360, count=10, isTopLevel=1 '\001', dest=0x2a50c40, altdest=0x2a50c40,

Re: [GENERAL] Segmentation fault with core dump

2013-04-10 Thread Joshua Berry
Ok, I might be seeing whats going on here. Could you go to 'printtup' and print *myState, *myState-attrinfo, *typpeinfo? #4 0x004593c4 in printtup (slot=0x2d14618, self=0x2a50c40) at printtup.c:297 297 printtup_prepare_info(myState, typeinfo, natts); (gdb)

Re: [GENERAL] Segmentation fault with core dump

2013-04-10 Thread Joshua Berry
Hm. Make that a print *(DR_printtup *) self print *((DR_printtup *) self)-attrinfo print *slot-tts_tupleDescriptor (gdb) print *(DR_printtup *) self $2 = {pub = {receiveSlot = 0x459390 printtup, rStartup = 0x459550 printtup_startup, rShutdown = 0x458a20 printtup_shutdown, rDestroy

[GENERAL] Altering table with open cursors

2010-11-03 Thread Joshua Berry
Joshua Berry

Re: [GENERAL] How to search ignoring spaces and minus signs

2010-10-14 Thread Joshua Berry
Hi Andrus, 2010/10/13 Andrus kobrule...@hot.ee CHAR(20) columns in 8.4 database may contains spaces and - signs like 13-333-333 12 3-44 33 33 333 12345 User enters code to search without spaces and - signs, like 12344 How to search for product code ignoring spaces and - signs? For

Re: [GENERAL] Optimizing queries that use multiple tables and many order by columns

2010-08-26 Thread Joshua Berry
On Thu, Aug 26, 2010 at 2:51 AM, Wappler, Robert rwapp...@ophardt.comwrote: Do you really have the requirement to sort anything? Or let me ask it the other way round: Assuming you have too much data, to sort it on the application side, which user can read all this from one single table in the

[GENERAL] Optimizing queries that use multiple tables and many order by columns

2010-08-25 Thread Joshua Berry
ON analysis USING btree (job, lab); Thanks for any insights and tips you can provide! Kind Regards, -Joshua Berry

Re: [GENERAL] Optimizing queries that use multiple tables and many order by columns

2010-08-25 Thread Joshua Berry
On Wed, Aug 25, 2010 at 10:40 AM, Wappler, Robert rwapp...@ophardt.comwrote: On 2010-08-25, Joshua Berry wrote: Here's my latest culprit: select Anl.Priority, Anl.Lab, Anl.Job, JOB.DateIn, JOB.CompanyCode, Anl.SampleName from analysis anl join job on anl.job = job.job order

Re: [GENERAL] Running Windows on a Mac partition

2010-03-31 Thread Joshua Berry
My vote would be to follow Craig Ringer's advice to run the pg server in a virtual machine. I'd choose something like vmware/fusion or if you want license free options, I think they exist that can run hosts on win32 and BSD/MacOS. But if you wanted to avoid dual booting altogether and

[GENERAL] User action accounting

2010-03-30 Thread Joshua Berry
with a helpful search query or URL. Kind Regards, -Joshua Joshua Berry

Re: [GENERAL] User action accounting

2010-03-30 Thread Joshua Berry
On Tue, Mar 30, 2010 at 10:46 AM, Andy Colson a...@squeakycode.net wrote: When your app/users connect to the db, do they connect as the same user, or each with a different username? The application instances each connect to the database with the same username. The application currently uses

Re: [GENERAL] Running Windows on a Mac partition

2010-03-30 Thread Joshua Berry
On Tue, Mar 30, 2010 at 4:46 PM, Scott Marlowe scott.marl...@gmail.comwrote: On Tue, Mar 30, 2010 at 1:57 PM, John Gage jsmg...@numericable.fr wrote: I just wondered if I could access the same 8.4.2 server from the Windows partition (XP via Bootcamp) as I do from the Mac partition on my Mac?

[GENERAL] Upgrade from 8.2 to 8.3 catching errors in functions

2009-10-27 Thread Joshua Berry
for such conflicts? Thus far we exclusively use plpgsql. Regards, -Joshua Berry

[GENERAL] Absolute value of intervals

2009-10-27 Thread Joshua Berry
; but I could use some pointers as to which project files that should be related to such a change. Regards, -Joshua Berry -- 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] Upgrade from 8.2 to 8.3 catching errors in functions

2009-10-27 Thread Joshua Berry
On Tue, Oct 27, 2009 at 1:35 PM, Pavel Stehule pavel.steh...@gmail.com wrote: | | 2009/10/27 Joshua Berry yob...@gmail.com: | Greetings, | | It seems that in Postgresql 8.2 less casting was necessary to coax the | backend to execute queries. | For example: | * Comparing a varchar

[GENERAL] Error when trying to use pg_dump on 8.3 after minor release update

2009-10-23 Thread Joshua Berry
away: I don't want us to be left with a dead database and no backup with the latest data. So, is this expected behavior when you fail to restart after a minor version upgrade, or is this a sign of hardware failure and we should try dumping relations one at a time? Regards, -Joshua Berry -- Sent

[GENERAL] Re: Error when trying to use pg_dump on 8.3 after minor release update

2009-10-23 Thread Joshua Berry
. The current instance postmaster has been running 32 days. How can I assess the situation? What procedure would you recommend? Regards, -Joshua Berry -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref

Re: [GENERAL] Error when trying to use pg_dump on 8.3 after minor release update

2009-10-23 Thread Joshua Berry
to perform a database dump. Any ideas how this can happen, and how to avoid? Should I assume that there are more problems and recreate the database from a fresh dump? Or will the system suffice in it's current state? Regards, -Joshua Berry -- Sent via pgsql-general mailing list (pgsql-general

[GENERAL] Limiting the impact of schema additions/poor queries made by clients on production machines

2009-10-05 Thread Joshua Berry
Our shop uses postgres for a dozen installations. The applications have some realtime performance requirements, and are just good enough to function properly. The problem is that the clients (owners of the production servers) are using the same server/database for customizations that are causing

Re: [GENERAL] array/function question

2009-05-19 Thread Joshua Berry
}','{}'); --{f,f,f,f} select m_bx('{}'::int[],'{}'); --{}::bool Regards, Joshua Berry On May 18, 2009, at 10:00 PM, Nagy Zoltan wrote: create or replace function m_bx(a integer[],b integer[]) returns boolean[] as $BODY$ declare res boolean[]; declare i integer

[GENERAL] Providing an alternative result when there is no result

2009-05-18 Thread Joshua Berry
. Any hints/tips? Is our original solution okay, or is there something we can do to improve things? Thanks, Joshua Berry -- 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] Data in a table to a csv file

2009-05-18 Thread Joshua Berry
Linux or MacOS X. HTH, -Joshua Joshua Berry

[GENERAL] array/function question

2009-05-18 Thread Joshua Berry
/plpgsql-control-structures.html but still not sure how to apply the grammar to arrays data types. If there is a builtin array function that achieves this, that would be good to know as well. Cheers, -Joshua Joshua Berry -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org

[GENERAL] Converting Rows to Columns

2009-05-05 Thread Joshua Berry
there is an example of how to convert columns to rows using UNION, but not visa versa. Thanks in advance! Joshua Joshua Berry Software Engineer Opentech, S.A. +(595 21) 282557 Work +(595) 981 330 701 Mobile

[GENERAL] Garbage Collecting

2009-03-23 Thread Joshua Berry
? Should the external scripts/code that puts the data into the database be responsible for removing the old data? Thanks in advance for any/all pointers! -Joshua -- Joshua Berry Software Engineer Opentech, S.A. +(595 21) 282557 Work +(595) 981 330 701 Mobile