Hi Andrew, Le 20 mai 09 à 11:43, Andrew Price a écrit :
> There seems to be some discrepency between setup-coreobject.sh: > > sudo -u postgres createuser --no-superuser --no-createrole -- > createdb $USER > > and this: > > 2009-05-20 09:30:21.680 CoreObjectExample[13744] WARNING: Failed to > connect to database 'coreobject_andy': FATAL: database > "coreobject_andy" does not exist > > Should the db be set up as coreobject_$USER instead of $USER? setup-coreobject.h does only create the user (or rahter role) that will be used to access the CoreObject db. The database itself is created lazily the first time you start a CoreObject-based application like Mélodie or CoreObjectExample. The ugly warning comes from the fact there seems to be no way to check whether a database exists for a given PostgreSQL server with libpq API. At least I was unable to figure out how that could be done. The only work around I have found is to try to access the database and see whether it fails or not. If someone how to do this properly, I would be interested by that. Cheers, Quentin. _______________________________________________ Etoile-discuss mailing list [email protected] https://mail.gna.org/listinfo/etoile-discuss
