id	summary	reporter	owner	description	type	status	priority	milestone	component	resolution	keywords	cc	planetversion	pltversion
411	Growing memory consumption when using ryanc/db.plt	yvesf-racket@…	ryanc	"I experience Memory Leaks while using db.plt with postgresql.

Checked using racket 5.2 on FreeBSD and Racket 5.1.3 on Debian wheezy.

Test-Program:

{{{
#lang racket/base
(require (prefix-in db: (planet ryanc/db:1:4)))

(define pgc
     (db:postgresql-connect
       #:user ""ebus"" #:database ""ebus"" #:password ""ebus"" #:socket ""/tmp/.s.PGSQL.5432""));; or #:server - no difference

(define (pgc-test)
      (db:query-value pgc ""SELECT 1""))

(let loop ()
      (let ([x (pgc-test)])
              (loop)))
}}}

Memory usage grows with the number of database querys (more querys -> grows faster) until the process die.

As a workaround i'm using synx/libpq right now, but i would db.plt because it looks more mature and uses the postgresql wire-protocol instead of FFI bindings.

---

Another smaller issue i ran into: FreeBSD is not marked as a supported platform for socket-connections."	defect	new	major		ryanc/db.plt					
