[INTERFACES] PGACCESS formdemo.sql

Поиск
Список
Период
Сортировка
Искать

[INTERFACES] PGACCESS formdemo.sql

От:
Roland N Verrier <verrier@oneworldsolution2by2.mb.ca>
Дата:
 Question for the Masters 
This maybe a simple question, but how do you activate the sample demo, formdemo.sql in PgAccess.
~~~~~~
I have install on my Linux machine,
Red Hat 6.0
PostgreSQL v 6.4.2-6
PgAccess v 0.98, nice improvement
~~~~~~
Postmaster running, PgAccesss running
PgAccess v 0.98 is in /usr/local/pgaccess
Off the Web site it says, Create an empty database and psql your database <formdemo.sql
I have the template1 and other databases in /var/lib/pgsql/base
How do I make the connection with formdemo.sql and the base dir., if I create a new database, opened in PgAccess?
~~~~~~
Thanks, for Being Creators and Helpers

Re: [INTERFACES] PGACCESS formdemo.sql

От:
Constantin Teodorescu <teo@flex.ro>
Дата:
Roland N Verrier wrote:
> 
> Postmaster running, PgAccesss running
> PgAccess v 0.98 is in /usr/local/pgaccess
> Off the Web site it says, Create an empty database and psql your
> database  I have the template1 and other databases in /var/lib/pgsql/base
> How do I make the connection with formdemo.sql and the base dir., if I
> create a new database, opened in PgAccess?

Let's say you are the Linux user roland on your computer.

There is a postgres user , the master of PostgreSQL database server as
the system administrator.
Don't know the password for postgres user but you should assign one as
root and then log in as postgres user.
Then create a PostgreSQL user with the following command:

$ createuser roland

and follow the instructions there. Now you have a PostgreSQL user roland
and you may create databases , other users and so on.

As postgres linux user (or as roland) create and fill the formdemo
database :

$ createdb formdemo
$ psql formdemo  \d

Then run PgAccess as :

$ pgaccess formdemo

or simply run PgAccess without parameter and the from the Database/Open
menu, specify formdemo as your database, localhost to host, 5432 as
port. Username and password may not be supplied if you are connecting to
localhost.

Enjoy,
-- 
Constantin Teodorescu
FLEX Consulting Braila, ROMANIA

Re: [INTERFACES] PGACCESS formdemo.sql

От:
Roland N Verrier <verrier@oneworldsolution2by2.mb.ca>
Дата:
 Help 
Concerning the the sample formdemo, ( formdemo.sql )
This demo file is in the ( /usr/local/pgaccess/demo/formdemo.sql ) directory, from the upgrade v 0.98.
Or you can download the ( formdemo.sql ) file only, from the PgAccess web site.
My question is, which directory do you put the ( formdemo.sql ) file.
So when you type
$ createdb formdemo
$ psql formdemo <formdemo.sql
I get no such file or directory
Thanks, Roland
 
 
Roland N Verrier wrote:
>
> Postmaster running, PgAccesss running
> PgAccess v 0.98 is in /usr/local/pgaccess
> Off the Web site it says, Create an empty database and psql your
> database <formdemo.sql
> I have the template1 and other databases in /var/lib/pgsql/base
> How do I make the connection with formdemo.sql and the base dir., if I
> create a new database, opened in PgAccess?
Constantin Teodorescu wrote:

Let's say you are the Linux user roland on your computer.

There is a postgres user , the master of PostgreSQL database server as
the system administrator.
Don't know the password for postgres user but you should assign one as
root and then log in as postgres user.
Then create a PostgreSQL user with the following command:

$ createuser roland

and follow the instructions there. Now you have a PostgreSQL user roland
and you may create databases , other users and so on.

As postgres linux user (or as roland) create and fill the formdemo
database :

$ createdb formdemo
$ psql formdemo <formdemo.sql

Now database formdemo should exist, check it with :

$ psql formdemo
formdemo=> \d

Then run PgAccess as :

$ pgaccess formdemo

or simply run PgAccess without parameter and the from the Database/Open
menu, specify formdemo as your database, localhost to host, 5432 as
port. Username and password may not be supplied if you are connecting to
localhost.

Enjoy,
--
Constantin Teodorescu
FLEX Consulting Braila, ROMANIA

Re: [INTERFACES] PGACCESS formdemo.sql

От:
Roland N Verrier <verrier@oneworldsolution2by2.mb.ca>
Дата:
 Help 
Concerning the the sample formdemo, ( formdemo.sql )
This demo file is in the ( /usr/local/pgaccess/demo/formdemo.sql ) directory, from the upgrade v 0.98.
Or you can download the ( formdemo.sql ) file only, from the PgAccess web site.
My question is, in which directory do you put the ( formdemo.sql ) database file in.
So when you type
# su - roland
$ createdb formdemo
$ psql formdemo <formdemo.sql
I get
bash: formdemo.sql: No such file or directory
~~~~~~~~~
I do get when I type
$ psql formdemo
Welcome etc.
formdemo=> \d
Then I get a table
~~~~~~
The formdemo.sql does not show up in PgAccess
I have other databases, tables and forms working in PgAccess?
Thanks, Roland

Constantin Teodorescu wrote:

Let's say you are the Linux user roland on your computer.

There is a postgres user , the master of PostgreSQL database server as
the system administrator.
Don't know the password for postgres user but you should assign one as
root and then log in as postgres user.
Then create a PostgreSQL user with the following command:

$ createuser roland

and follow the instructions there. Now you have a PostgreSQL user roland
and you may create databases , other users and so on.

As postgres linux user (or as roland) create and fill the formdemo
database :

$ createdb formdemo
$ psql formdemo <formdemo.sql

Now database formdemo should exist, check it with :

$ psql formdemo
formdemo=> \d

Then run PgAccess as :

$ pgaccess formdemo

or simply run PgAccess without parameter and the from the Database/Open
menu, specify formdemo as your database, localhost to host, 5432 as
port. Username and password may not be supplied if you are connecting to
localhost.

Enjoy,
--
Constantin Teodorescu
FLEX Consulting Braila, ROMANIA

Roland N Verrier wrote:

Question for the Masters
This maybe a simple question, but how do you activate the sample demo, formdemo.sql in PgAccess.

~~~~~~
I have install on my Linux machine,
Red Hat 6.0
PostgreSQL v 6.4.2-6
PgAccess v 0.98, nice improvement
~~~~~~
Postmaster running, PgAccesss running
PgAccess v 0.98 is in /usr/local/pgaccess
Off the Web site it says, Create an empty database and psql your database <formdemo.sql
I have the template1 and other databases in /var/lib/pgsql/base
How do I make the connection with formdemo.sql and the base dir., if I create a new database,
opened in PgAccess?
~~~~~~
Thanks, for Being Creators and Helpers ************

Re: [INTERFACES] PGACCESS formdemo.sql

От:
"Mark Gaschermann" <mgascherma@wpcusrgrp.org>
Дата:
>This maybe a simple question, but how do you activate the sample demo,
formdemo.sql in PgAccess.
>~~~~~~
>

I have also had a problem getting the demo to work. I followed the steps
outlined by Constantin in his reply, but for some reason I keep getting
errors when I psql formdemo

Re: [INTERFACES] PGACCESS formdemo.sql

От:
Constantin Teodorescu <teo@flex.ro>
Дата:
Mark Gaschermann wrote:
> 
> >This maybe a simple question, but how do you activate the sample demo,
> formdemo.sql in PgAccess.
> >~~~~~~
> >
> 
> I have also had a problem getting the demo to work. I followed the steps
> outlined by Constantin in his reply, but for some reason I keep getting
> errors when I psql formdemo 
> The phonebook table is created OK, but when it gets to the cities table I
> get the errors:
> 
> pg_aclcheck:class ""cities_id_seq"" not found
> pg_ownercheck:class "cities" not found
> error: cities: table does not exist

Get a new fresh copy of formdemo.sql from

http://www.flex.ro/pgaccess/formdemo.sql

or

http://speedy.flex.ro/pgaccess/formdemo.sql

I checked it right now and it worked just fine! Hope it's ok now.

Teo

Re: [INTERFACES] PGACCESS formdemo.sql

От:
"Ross J. Reedstrom" <reedstrm@wallace.ece.rice.edu>
Дата:
On Wed, Sep 08, 1999 at 12:12:55AM -0500, Mark Gaschermann wrote:
> 
> I have also had a problem getting the demo to work. I followed the steps
> outlined by Constantin in his reply, but for some reason I keep getting
> errors when I psql formdemo 
> The phonebook table is created OK, but when it gets to the cities table I
> get the errors:
> 
> pg_aclcheck:class ""cities_id_seq"" not found
> pg_ownercheck:class "cities" not found
> error: cities: table does not exist
> 
> After starting pgAccess I can open forms, see the phonebook table and it's
> data, etc, but when I try to open the Schema, I get the error that cities
> table does not exist.
> 
> Any ideas?  I'm using the formdemo.sql that came with the downloaded v 0.98
> 

What version of PostgreSQL are you using?

> Mark G
> 
> 

-- 
Ross J. Reedstrom, Ph.D.,  
NSBRI Research Scientist/Programmer
Computer and Information Technology Institute
Rice University, 6100 S. Main St.,  Houston, TX 77005

Re: [INTERFACES] PGACCESS formdemo.sql

От:
Mark Gaschermann <mgascherma@wpcusrgrp.org>
Дата:

> > pg_aclcheck:class ""cities_id_seq"" not found
> > pg_ownercheck:class "cities" not found
> > error: cities: table does not exist
> >
> > After starting pgAccess I can open forms, see the phonebook table and it's
> > data, etc, but when I try to open the Schema, I get the error that cities
> > table does not exist.
> >
> > Any ideas?  I'm using the formdemo.sql that came with the downloaded v 0.98
> >
> 
> What version of PostgreSQL are you using?

I'm using the version that came on RedHat 6.0 , postgres 6.4.2-3.

I was fiddling around with the formdemo.sql file and found that if I
removed the double quotes from around all occurences of "cities_id_seq"
the tables were created properly.
ie. changed CREATE SEQUENCE "cities_id_seq" to  CREATE SEQUENCE
cities_id_seq 
and SELECT nextval ('"cities_id_seq"'); to SELECT nextval
('cities_id_seq'); 

I'm guessing maybe it's due to my having an older version of Postgres???

Mark G

Re: [INTERFACES] PGACCESS formdemo.sql

От:
Roland N Verrier <verrier@oneworldsolution2by2.mb.ca>
Дата:
 Mark, 
Ross,
I have Red Hat 6.0 and I've installed PostgreSQL 6.4.2-6, and have the same problem as Mark?
So, I guess we need PostgreSQL 6.5.1, or is there a different correction?
Roland

Mark Gaschermann wrote:

> > pg_aclcheck:class ""cities_id_seq"" not found
> > pg_ownercheck:class "cities" not found
> > error: cities: table does not exist
> >
> > After starting pgAccess I can open forms, see the phonebook table and it's
> > data, etc, but when I try to open the Schema, I get the error that cities
> > table does not exist.
> >
> > Any ideas?  I'm using the formdemo.sql that came with the downloaded v 0.98
> >
>
> What version of PostgreSQL are you using?

I'm using the version that came on RedHat 6.0 , postgres 6.4.2-3.

I was fiddling around with the formdemo.sql file and found that if I
removed the double quotes from around all occurences of "cities_id_seq"
the tables were created properly.
ie. changed CREATE SEQUENCE "cities_id_seq" to  CREATE SEQUENCE
cities_id_seq
and SELECT nextval ('"cities_id_seq"'); to SELECT nextval
('cities_id_seq');

I'm guessing maybe it's due to my having an older version of Postgres???

Mark G

Re: [INTERFACES] PGACCESS formdemo.sql

От:
"Ross J. Reedstrom" <reedstrm@wallace.ece.rice.edu>
Дата:
On Wed, Sep 08, 1999 at 06:17:15PM -0500, Mark Gaschermann wrote:
> 
> > > pg_aclcheck:class ""cities_id_seq"" not found
> > > pg_ownercheck:class "cities" not found
> > > error: cities: table does not exist
> > >
> > > After starting pgAccess I can open forms, see the phonebook table and it's
> > > data, etc, but when I try to open the Schema, I get the error that cities
> > > table does not exist.
> > >
> > > Any ideas?  I'm using the formdemo.sql that came with the downloaded v 0.98
> > >
> > 
> > What version of PostgreSQL are you using?
> 
> I'm using the version that came on RedHat 6.0 , postgres 6.4.2-3.
> 
> I was fiddling around with the formdemo.sql file and found that if I
> removed the double quotes from around all occurences of "cities_id_seq"
> the tables were created properly.
> ie. changed CREATE SEQUENCE "cities_id_seq" to  CREATE SEQUENCE
> cities_id_seq 
> and SELECT nextval ('"cities_id_seq"'); to SELECT nextval
> ('cities_id_seq'); 

This one's it. The processing of class names when passed as arguments
to a function changed, to deal with the MiXeDCase problem.  The CREATE
SEQUENCE should work fine either way.

Ross
-- 
Ross J. Reedstrom, Ph.D.,  
NSBRI Research Scientist/Programmer
Computer and Information Technology Institute
Rice University, 6100 S. Main St.,  Houston, TX 77005

Re: [INTERFACES] PGACCESS formdemo.sql

От:
"Ross J. Reedstrom" <reedstrm@wallace.ece.rice.edu>
Дата:
Roland - 
Your message came over in HTML, so I'm having trouble replying easily:
please make sure you sent plain text to the mailing lists. 

I think I say something about you also using 6.4.x. The other person's
fix was in fact correct: just remove the _double_ quotes from around
any table name that is the argument of a function (I think the only ones
are all DEFAULT nextval type statements). If that is infact all that are
the problem, Constantin could change the example to explicitly use the
'serial' shorthand: that works on both 6.4 and 6.5.

There are a relatively large number of bug fixes and performance
improvements in 6.5.1. You really should consider upgrading.

Ross

On Wed, Sep 08, 1999 at 09:55:20PM -0500, Roland N Verrier wrote:

????

-- 
Ross J. Reedstrom, Ph.D.,  
NSBRI Research Scientist/Programmer
Computer and Information Technology Institute
Rice University, 6100 S. Main St.,  Houston, TX 77005

FAQ