Re: Trouble Connecting to Postgres
- From: Murray Cumming <murrayc murrayc com>
- To: David Nusinow <david_nusinow verizon net>
- Cc: glom-devel-list gnome org
- Subject: Re: Trouble Connecting to Postgres
- Date: Mon, 13 Dec 2004 21:17:16 +0100
On Wed, 2004-12-08 at 23:21 -0500, David Nusinow wrote:
On Sun, Nov 28, 2004 at 11:24:23PM -0500, David Nusinow wrote:
Hello,
I've managed to build the latest release of glom and run it, but it fails to
connect to postgres. postgres is running, and I can connect to it using the
psql terminal without any problems. I've tried putting in the connection error
checking code from the libgda docs, but it fails to build, and I don't have
much experience with gtkmm, so debugging it has been a bit tough. If you've got
any thoughts as to why it won't connect to the backend, I'd much appreciate
hearing them. Thanks!
So after a fair amount of work, I haven't reached a conclusion as to what's
going on, but I've found a few things:
1) Upon trying to connect and create a new database, the database name isn't
passed in the connection string for some reason,
It should not specify a database when creating a database. It should
specify the database when trying to use the database that it has already
created. It should do that since glom 0.8.9.
so postgres tries to use the
user name as the database name.
It should definitely never do that.
It then complains that the DB doesn't exist.
2) If the database is already created by createdb, glom segfaults
3) In the glom document, the database title, user name, and database name
aren't filled in. If I fill them in manually and connect to the database after
creating the DB using createdb, glom segfaults.
I'm rapidly trying to learn libbakery
That's not going to be very relevant here, I think.
and such so that I can understand exactly
what's going on. This is definitely happening with both 0.8.9 and 0.8.10. This
is on Debian sid as well, using the most up to date libgda, libgdamm, and
libbakery available in tarball form. If you've got any tips on debugging this
further, it'd be much appreciated. Thanks!
It would be a good idea to open a bugzilla report, and enter exact
details about your distro and the versions of glom and its dependencies
that you are using. It's working for me in debian unstable and Fedora
Core 3.
Thanks for your effort so far.
--
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]