Re: [GENERAL] medical image on postgreSQL?

From: Sean Chittenden <sean(at)chittenden(dot)org>
To: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [GENERAL] medical image on postgreSQL?
Date: 2003-04-11 21:16:17
Message-ID: 20030411211617.GP79923@perrin.int.nxad.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

> > > Apologize.. this posting may not relevance enough to this group.
> > > I am very much a newbie to posgreSQL database programming and
> > > would like assistance. I am finding an example how to use the
> > > database (postgreSQL) to store MRI/CT image data using C
> > > language interface. I heard something pronounced like:
> > > Content-Based Image Retrieval.. but I still do not have any idea
> > > for a HowTo do on postgreSQL database.
> >
> > This is the 3rd such case that I've heard someone using PostgreSQL
> > to store MRI images. While it's non-portable (works on
> > FreeBSD/Linux), sendfile() and recvfile() would be huge wins for
> > folks in that crowd (or anyone storing/fetching large files).
> > There'd be some large #ifdef sections (~100 lines?) in the
> > backend, possibly in the fe ('nother ~100 lines), but would
> > patches for this be accepted into the tree if I did the legwork
> > given sendfile()'s non-universal portability (which seems to be,
> > IMHO, an overly important criteria)? -sc
>
> I'm not familiar with sendfile() recfile(). Are they in contrib
> somewhere?

:) They're system calls, like write() && read() except they're zero
copy socket operations. If the OS has sendfile(), the OS basically
DMA's the data from the disk read directly to the network card
averting copying the data to the userland and back to the kernel. I
actually think it'd be interesting to get this in use for general
reads. sendfile() lets you send headers/trailers to the data being
sent, similar to writev(). Other zero copy socket operations are
mmap() + write(), but last I heard, that was a FreeBSD only
thing... for now. man 2 sendfile

err... there is no recvfile though... I thought there was an fd based
call similar to recvfrom called recvfile... I wonder where I saw
that... hrm, I think I may add that to -CURRENT for orthogonality's
sake. -sc

--
Sean Chittenden

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message P G 2003-04-11 21:30:21 Has anyone seen this error? I cannot login into my database.
Previous Message Dennis Gearon 2003-04-11 21:10:41 Re: Case sensitive order by

Browse pgsql-hackers by date

  From Date Subject
Next Message Kevin Brown 2003-04-11 21:32:59 Re: Anyone working on better transaction locking?
Previous Message scott.marlowe 2003-04-11 20:53:49 Re: [GENERAL] medical image on postgreSQL?