[GENERAL] RE: Using Postgres with Access 2000

2001-01-05 Thread Michael Davis
1) Make sure the odbc data source you are using has the read only flag checked off. 2) Create a primary key index for the table. Access97 requires a primary key or it will not allow you to edit or add any rows. -Original Message- From: Scott Teglasi [SMTP:[EMAIL PROTECTED]] Sent:

[GENERAL] RE: Table msysconf

2001-01-04 Thread Michael Davis
Is there any documentation on what can be configured between PostgreSQL and Access? -Original Message- From: Jose Soares [SMTP:[EMAIL PROTECTED]] Sent: Thursday, January 04, 2001 3:59 AM To: Siuda Pawe? DI Centrala Cc: '[EMAIL PROTECTED]' Subject:Re: Table msysconf

[GENERAL] Numeric and money

2001-01-03 Thread Michael Davis
al functions that already exist to convert numeric to text so that I don't have to write one? I know that psql successfully does this. Thanks, Michael Davis Database Architect and Senior Software Engineer, Seva Inc. Office: 303-460-7360Fax: 303-460-7362 Mobile: 720-320-6971 Email: [EMAIL PROTECTED]

[GENERAL] RE: sequences and tables

2001-01-03 Thread Michael Davis
Try: --This shows all default values for columns SELECT DISTINCT c.relname, a.attname, t.typname, pa.adsrc, a.atttypid FROM pg_attribute a, pg_class c, pg_type t, pg_attrdef pa WHERE a.attrelid = c.oid AND a.atttypid = t.oid AND c.oid = pa.adrelid AND a.attnum =

[GENERAL] pg_dump/psql < db.out issue

2001-01-02 Thread Michael Davis
ea how to work around this other than using the -d/-D option in pg_dump? I like the -d option in pg_dump, however, importing the data via pgsql is much slower with this option. Thanks in advance, Michael Davis

Re: [GENERAL] postgreSQL for storing a database of documents

1999-05-05 Thread Michael Davis
Your e-mail did not arrive at its intended destination. You need to send it to Michael J. Davis, not Michael Davis From: dustin sallings on 05/05/99 01:57 AM To: mtony @ iname.com@SMTP@EXCHANGE cc: pgsql-general @ postgreSQL.org@SMTP@EXCHANGE

Re: [GENERAL] postgreSQL for storing a database of documents

1999-05-05 Thread Michael Davis
Your e-mail did not arrive at its intended destination. You need to send it to Michael J. Davis, not Michael Davis. From: Mark Fleming on 05/04/99 02:23 PM To: pgsql-general @ postgreSQL.org@SMTP@EXCHANGE cc: Subject:Re: [GENERAL

Re: [GENERAL] advice on buying sun hardware to run postgres

1999-05-05 Thread Michael Davis
Your e-mail did not arrive at its intended destination. You need to send it to Michael J. Davis, not Michael Davis. From: Bruce Momjian on 05/04/99 12:39 PM To: Chris Bitmead @SMTP@EXCHANGE cc: pgsql-general @ postgreSQL.org@SMTP@EXCHANGE

RE: [GENERAL] How to get seq after insert

1999-04-14 Thread Michael Davis
The safest way is to select the nextval('seq_name') and then insert using this value. -Original Message- From: Brian [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, April 14, 1999 2:59 PM To: [EMAIL PROTECTED] Subject:[GENERAL] How to get

RE: [GENERAL] pg_dump error

1999-04-03 Thread Michael Davis
Try vacuum. You could also try dropping and recreating your indexes. -Original Message- From: Stefano Zampieri [SMTP:[EMAIL PROTECTED]] Sent: Saturday, April 03, 1999 3:56 AM To: [EMAIL PROTECTED] Subject:[GENERAL] pg_dump error

RE: [GENERAL] limit select question

1999-03-31 Thread Michael Davis
:[EMAIL PROTECTED]] Sent: Wednesday, March 31, 1999 12:30 AM To: Michael Davis Cc: PGSQL-General (E-mail) Subject:RE: [GENERAL] limit select question On Wed, 31 Mar 1999, Michael Davis wrote: > Good point. I am running 6.5. So

RE: [GENERAL] limit select question

1999-03-31 Thread Michael Davis
Good point. I am running 6.5. So it has been fixed. I am not sure what patch is needed to make this work on 6.4.2. -Original Message- From: Kevin Heflin [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, March 31, 1999 12:26 AM To: Michael Davis

RE: [GENERAL] limit select question

1999-03-31 Thread Michael Davis
Select * From table_name limit 1; -Original Message- From: Kevin Heflin [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, March 30, 1999 10:00 PM To: PGSQL-General (E-mail) Subject:[GENERAL] limit select question I've been asked if t

RE: [GENERAL] using Oids to retrieve a row

1999-03-26 Thread Michael Davis
I use the following technique: add sequence to the primary key of the table look up the sequence the primary key insert a record using (including) the primary key re-query the newly inserted record using the primary key Thanks, Michael -Original Message- From: David O'F

RE: [GENERAL] Comments on columns?

1999-03-12 Thread Michael Davis
, Michael -Original Message- From: Bruce Momjian [SMTP:[EMAIL PROTECTED]] Sent: Friday, March 12, 1999 11:31 AM To: Michael Davis Cc: [EMAIL PROTECTED] Subject:Re: [GENERAL] Comments on columns? > I did that and

RE: [GENERAL] Comments on columns?

1999-03-12 Thread Michael Davis
I did that and it works great. I would like \dd tablename to show the table comment and its column comments. -Original Message- From: Bruce Momjian [SMTP:[EMAIL PROTECTED]] Sent: Friday, March 12, 1999 7:43 AM To: Michael Davis Cc

[GENERAL] Comments on columns?

1999-03-12 Thread Michael Davis
Are there any plans to have psql support comments on columns? For example, I would like to be able to add a comment on a column of a table and have \dd display the table comment in addition to any/all column comments. Thanks, Michael

RE: [GENERAL] SQL Question

1999-03-10 Thread Michael Davis
Yes, the "having" clause is supported in 6.4.2 with some restrictions as outlined in the documentation on the web site. -Original Message- From: Matthew [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, March 09, 1999 10:46 PM To: [EMAIL PROTECTED] S

[GENERAL] Size of a table in bytes?

1999-03-09 Thread Michael Davis
Does anyone have a query or function that will return the size (in bytes) of a table?

[GENERAL] Questions about functions and loops

1999-03-03 Thread Michael Davis
1) When I run the function below I get an error at "select". If I put the select statement in single quotes, I get an error at "loop". Any suggestions how to fix this? 2) When I install the following function: CREATE FUNCTION InstallPermissions(varchar, varchar) RETURNS int2 AS '

RE: [GENERAL] Tree structure

1999-02-26 Thread Michael Davis
You could try select spaces(pointer::int4) || Number; Where spaces() is a function that inserts "pointer" number of spaces (or dashes if you want to create your own function). Not sure if spaces() exists in Postgres or not, but it seems I read about it or a similar function somewhere.

[GENERAL] Comments on tables, functions, etc.

1999-02-25 Thread Michael Davis
How can I add a comment to a table, function, etc. that will should up in a /dd comment in psql?

RE: [GENERAL] Checkboxes on MSAccess and PostgreSQL

1999-02-24 Thread Michael Davis
I wrote a function that takes a boolean parameter and returns int2. -Original Message- From: Valerio Santinelli [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, February 24, 1999 1:10 PM To: Michael Davis Cc: [EMAIL PROTECTED] Subject

RE: [GENERAL] Checkboxes on MSAccess and PostgreSQL

1999-02-24 Thread Michael Davis
I defined my Access boolean fields as int2 in Postgres. This, in combination with removing the "Bools as Char" flag in the ODBC driver appears to work. However, I have not been able to much testing. -Original Message- From: Valerio Santinelli [SMTP:[EMAIL PROTECTED]]

RE: [GENERAL] Replication of databases (esp. postgres)

1999-02-17 Thread Michael Davis
I was thinking about creating a trigger on every table that would write an insert, update, or delete statement into a log file. Each replicated database would pro-actively read these and post them. -Original Message- From: Thomas Antepoth [SMTP:[EMAIL PROTECTED]]