Re: [racket-users] Using schemas with the 'db' module

2016-10-06 Thread David Storrs
That works perfectly. Thanks, Ryan. On Thu, Oct 6, 2016 at 6:42 PM, Ryan Culpepper wrote: > In PostgreSQL, clusters contain databases contain schemas. > > I think the answer is to use "SET SCHEMA" or the more general "SET > search_path". See > >

Re: [racket-users] Using schemas with the 'db' module

2016-10-06 Thread Jon Zeppieri
Ah, my mistake. Thanks! > On Oct 6, 2016, at 6:42 PM, Ryan Culpepper wrote: > > In PostgreSQL, clusters contain databases contain schemas. > > I think the answer is to use "SET SCHEMA" or the more general "SET > search_path". See > >

Re: [racket-users] Using schemas with the 'db' module

2016-10-06 Thread Ryan Culpepper
In PostgreSQL, clusters contain databases contain schemas. I think the answer is to use "SET SCHEMA" or the more general "SET search_path". See https://www.postgresql.org/docs/current/static/ddl-schemas.html https://www.postgresql.org/docs/current/static/sql-set.html Ryan On 10/06/2016

Re: [racket-users] Using schemas with the 'db' module

2016-10-06 Thread Jon Zeppieri
Isn't the #:database parameter in postgresql-connect what you're looking for? > On Oct 6, 2016, at 6:12 PM, David Storrs wrote: > > Is it possible to connect to a specific schema in a Postgres database, or to > set the current schema of an existing connection? > >

[racket-users] Using schemas with the 'db' module

2016-10-06 Thread David Storrs
Is it possible to connect to a specific schema in a Postgres database, or to set the current schema of an existing connection? The 'postgresql-connect' function has no parameter for schema...in fact, the only mention of schemas in the docs for db is in the Database Catalog section (

Re: [racket-users] Scribble, Picts, and Serialize/Deserialize Oddities

2016-10-06 Thread Vincent St-Amour
Wild guess: this may be a bug in record-dc%. IIRC, DrRacket uses record-dc% when rendering picts, and it would make sense that serialization would too. But drawing picts directly wouldn't. The last time I saw that kind of bug (inconsistent pict rendering between contexts), it turned out that

[racket-users] Scribble, Picts, and Serialize/Deserialize Oddities

2016-10-06 Thread Leif Andersen
I have been playing with scribble and serialize/deserialize a bit lately in a (somewhat successful) attempt to make my paper build in a reasonable amount of time. Anyway, I noticed some interesting behavior when Scribble is combined with picts and serialize/deserialize. And I'm kind of stumped as

[racket-users] Handin Issues

2016-10-06 Thread mattsap
So, I've been playing around with the handin server these days. My purposes of the handin require students to submit images using the htdp image and universe libraries. First, I would like to note that for the images, you must turn off textualization/create-text in your checker: (check: ;