Grokbase
x

Sean Davis (sd...@mail.nih.gov)

Profile | Posts (579)

User Information

Display Name:Sean Davis
Partial Email Address:sd...@mail.nih.gov
Posts:
579 total
4 in Catalyst Framework
9 in CGI-App
5 in DBIx::Class
14 in mod_perl
145 in PostgreSQL - General
25 in PostgreSQL - Interfaces
3 in PostgreSQL - JDBC
330 in PostgreSQL - Novice
4 in PostgreSQL - ODBC
5 in PostgreSQL - Performance
49 in PostgreSQL - SQL

5 Most Recent

All Posts
1) Sean Davis [GENERAL] [OT] RAID controllers blocking one another?
| +1 vote
We have a machine that serves as a fileserver and a database server. Our server hosts a raid array...
PostgreSQL - General
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
We have a machine that serves as a fileserver and a database server.  Our
server hosts a raid array of 40 disk drives, attached to two3-ware cards,
one 9640SE-24 and one 9640SE-16. We have noticed that activity on one
controller blocks access on the second controller, not only for disk-IO but
also the command line tools which become unresponsive for the inactive
controller.   The controllers are sitting in adjacent PCI-express slots on a
machine with dual-dual AMD and 16GB of RAM.  Has anyone else noticed issues
like this?  Throughput for either controller is a pretty respectable
150-200MB/s writing and somewhat faster for reading, but the "blocking" is
problematic, as the machine is serving multiple purposes.

I know this is off-topic, but I know lots of folks here deal with very large
disk arrays; it is hard to get real-world input on machines such as these.


Thanks,
Sean
2) Sean Davis Re: [INTERFACES] DBD-Pg with Perl 5.10
| +1 vote
You should be able to install from CPAN, correct? Sean
PostgreSQL - Interfaces
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Dec 19, 2007 4:21 PM, <godsham@comcast.net> wrote:

> Hi,
>
> Will a new version of DBD-Pg compiled against perl 5.10 be available soon?


You should be able to install from CPAN, correct?

Sean
3) Sean Davis Re: [GENERAL] plpython array support
| +1 vote
Thanks, Jorge. I know that postgresql supports arrays, but I still don't see how plpython supports...
PostgreSQL - General
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Nov 19, 2007 9:08 PM, Jorge Godoy <jgodoy@gmail.com> wrote:
> Em Monday 19 November 2007 19:29:51 Sean Davis escreveu:
> > Just a simple question--does plpythonu (8.3beta) have support for
> > arrays? I don't see a specific mention of it in the docs, so I
> > suppose not.
>
> Arrays work for a long time now. I've been using them since 8.1, for sure,
> but I think that on 7.4 I already had code with arrays inside the database...

Thanks, Jorge.  I know that postgresql supports arrays, but I still
don't see how plpython supports arrays.  I noticed this post:

http://archives.postgresql.org/pgsql-general/2007-01/msg01417.php

from January, 2007 that suggests how to use the string representation
of an array to convert to/from python arrays.  This will work, but I
was wondering if there is now a true conversion from postgresql arrays
to python and vice-versa.

Thanks,
Sean

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend
4) Sean Davis [GENERAL] plpython array support
| +1 vote
Just a simple question--does plpythonu (8.3beta) have support for arrays? I don't see a specific...
PostgreSQL - General
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Just a simple question--does plpythonu (8.3beta) have support for
arrays?  I don't see a specific mention of it in the docs, so I
suppose not.

Thanks,
Sean

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq
5) Sean Davis [GENERAL] plpython and error catching
| +1 vote
What is the expected behavior of a construct like this: def insert_xml(elem):...
PostgreSQL - General
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
What is the expected behavior of a construct like this:

def insert_xml(elem):
    id=int(elem.findtext('PMID'))
    try:
        plpy.execute(plan,[unicode(ET.tostring(elem)),id])
    except:
        plpy.execute(plan2,[unicode(ET.tostring(elem)),id])

id is a primary key on the table into which I am inserting.  "plan" is
the execute plan for inserting new data.  "plan2" is for updating data
already in the database.  When I run this, I am not able to catch
errors of this type:

WARNING:  plpython: in function insert_medline_file:
DETAIL:  plpy.Error: Unknown error in PLy_spi_execute_plan
ERROR:  duplicate key value violates unique constraint "medlinexml_pkey"
CONTEXT:  SQL statement "insert into medlinexml(content,id) values
(xmlparse(CONTENT $1),$2)"

Why am I not able to catch this error and execute the update plan?
The manual (8.3beta2) implies that errors generated in functions are
genuine python errors that I should be able to catch.

Thanks,
Sean

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

spacer
Profile | Posts (579)
Home > People > Sean Davis