Lists: | pgsql-general |
---|
From: | "jeremy `" <norman1nz(at)hotmail(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | how do you set foriegn keys in pgaccess? |
Date: | 2005-06-09 05:22:09 |
Message-ID: | [email protected] |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Lists: | pgsql-general |
I am a bit of a newbie to postgres, but I managed to install 8.0.4 on my
windows box and it mostly appears to be working fine;
I can set a primary key constraint, but when i try to set the foreign key it
requires a 'reference' - but there is nothing there to chose from.
I also have another query:
How do you export the database tables and relationships etc? I found a
pg_dump command in help and I am guessing this I what i need but where do I
enter this command in pgaccess?
Also how do you input existing SQL script into postgres?
Thanks for any help.
Jeremy
_________________________________________________________________
Become a fitness fanatic @ http://xtramsn.co.nz/health
From: | Richard Huxton <dev(at)archonet(dot)com> |
---|---|
To: | jeremy ` <norman1nz(at)hotmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: how do you set foriegn keys in pgaccess? |
Date: | 2005-06-09 07:58:34 |
Message-ID: | [email protected] |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Lists: | pgsql-general |
jeremy ` wrote:
> I am a bit of a newbie to postgres, but I managed to install 8.0.4 on my
> windows box and it mostly appears to be working fine;
> I can set a primary key constraint, but when i try to set the foreign
> key it requires a 'reference' - but there is nothing there to chose from.
>
> I also have another query:
> How do you export the database tables and relationships etc? I found a
> pg_dump command in help and I am guessing this I what i need but where
> do I enter this command in pgaccess?
>
> Also how do you input existing SQL script into postgres?
Well, pg_dump and psql are command-line tools that are very flexible
parts of your toolkit. They are described quite extensively in the
manuals, and these should have been installed as HTML on your system.
Also - are you sure you're using pgaccess and not pgadmin - both are
graphical tools for PG, but I though pgadmin was installed by default on
Windows.
--
Richard Huxton
Archonet Ltd
From: | Changyu Dong <dcy1_1999(at)yahoo(dot)com> |
---|---|
To: | jeremy ` <norman1nz(at)hotmail(dot)com>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: how do you set foriegn keys in pgaccess? |
Date: | 2005-06-09 08:10:15 |
Message-ID: | [email protected] |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Lists: | pgsql-general |
Hi, Jeremy,
Have you tried PGadminIII? It's much easier to use.
To input a script, you can use psql
psql -h HOSTNAME -d DANAME -f FILENAME -U USERNAME
Changyu
--- jeremy ` <norman1nz(at)hotmail(dot)com> wrote:
> I am a bit of a newbie to postgres, but I managed to
> install 8.0.4 on my
> windows box and it mostly appears to be working
> fine;
> I can set a primary key constraint, but when i try
> to set the foreign key it
> requires a 'reference' - but there is nothing there
> to chose from.
>
> I also have another query:
> How do you export the database tables and
> relationships etc? I found a
> pg_dump command in help and I am guessing this I
> what i need but where do I
> enter this command in pgaccess?
>
> Also how do you input existing SQL script into
> postgres?
>
> Thanks for any help.
> Jeremy
>
>
_________________________________________________________________
> Become a fitness fanatic @
> http://xtramsn.co.nz/health
>
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 8: explain analyze is your friend
>
__________________________________
Discover Yahoo!
Find restaurants, movies, travel and more fun for the weekend. Check it out!
http://discover.yahoo.com/weekend.html