Ticket #305 (closed defect: fixed)

Opened 13 years ago

Last modified 13 years ago

spgsql erroneously believes that sockets are not supported on 64-bit Linux machines

Reported by: paul.stansifer@… Owned by: schematics
Priority: major Milestone:
Component: schematics/spgsql.plt Keywords:
Cc: Version: (2 3)
Racket Version: 5.0

Description

This kind of connect command...

(connect #:socket "/var/run/postgresql/.s.PGSQL.5432"
         #:user "user_name"
         #:database "db_name"
         #:password "local_login_password"))

...encounters this error on my 64-bit Intel Linux system...

unix-socket-connect: unix-domain sockets not supported on this platform

On my system, (system-type 'machine) returns
"Linux saffron 2.6.35-22-generic #35-Ubuntu SMP Sat Oct 16 20:45:36 UTC 2010 x86_64 GNU/Linux"

When I change socket.ss from detecting Linux from this way...

[(regexp-match #rx"Linux.*i.86" machine) 'linux86]

...to this way...

[(regexp-match #rx"Linux.*86" machine) 'linux86]

...the library works as expected.

Change History

Changed 13 years ago by ryanc

  • status changed from new to closed
  • resolution set to fixed

The schematics/spgsql package has been superceded by the ryanc/db package. I've incorporated your suggestion into the latter (thanks!), but spgsql probably will not get any further updates.

Note: See TracTickets for help on using tickets.