head	1.18;
access;
symbols
	REL7_2_8:1.15
	REL7_2_7:1.15
	REL7_2_6:1.15
	REL7_2_5:1.15
	REL7_2_4:1.15
	REL7_2_3:1.15
	REL7_2_STABLE:1.15.0.4
	REL7_2:1.15
	REL7_2_RC2:1.15
	REL7_2_RC1:1.15
	REL7_2_BETA5:1.15
	REL7_2_BETA4:1.15
	REL7_2_BETA3:1.15
	REL7_2_BETA2:1.15
	REL7_2_BETA1:1.15
	REL7_1_2:1.15
	REL7_1_STABLE:1.15.0.2
	REL7_1_BETA:1.13
	REL7_1_BETA3:1.13
	REL7_1_BETA2:1.13
	REL7_1:1.15
	REL7_0_PATCHES:1.13.0.2
	REL7_0:1.13
	REL6_5_PATCHES:1.9.0.2
	REL6_5:1.9;
locks; strict;
comment	@# @;


1.18
date	2002.08.30.16.48.41;	author momjian;	state dead;
branches;
next	1.17;

1.17
date	2002.07.02.06.11.23;	author momjian;	state Exp;
branches;
next	1.16;

1.16
date	2002.06.20.20.29.42;	author momjian;	state Exp;
branches;
next	1.15;

1.15
date	2001.02.18.18.34.01;	author momjian;	state Exp;
branches;
next	1.14;

1.14
date	2001.01.27.18.34.37;	author momjian;	state Exp;
branches;
next	1.13;

1.13
date	2000.03.31.11.22.25;	author momjian;	state Exp;
branches;
next	1.12;

1.12
date	99.10.30.16.18.40;	author momjian;	state Exp;
branches;
next	1.11;

1.11
date	99.10.30.16.00.54;	author momjian;	state dead;
branches;
next	1.10;

1.10
date	99.09.20.22.28.11;	author scrappy;	state Exp;
branches;
next	1.9;

1.9
date	99.03.09.14.17.51;	author scrappy;	state Exp;
branches
	1.9.2.1;
next	1.8;

1.8
date	98.02.19.16.43.50;	author scrappy;	state dead;
branches;
next	1.7;

1.7
date	97.10.16.17.32.03;	author momjian;	state Exp;
branches;
next	1.6;

1.6
date	97.10.03.23.11.24;	author momjian;	state Exp;
branches;
next	1.5;

1.5
date	97.10.03.15.47.13;	author momjian;	state Exp;
branches;
next	1.4;

1.4
date	97.10.01.15.38.55;	author momjian;	state Exp;
branches;
next	1.3;

1.3
date	97.09.30.03.28.02;	author momjian;	state Exp;
branches;
next	1.2;

1.2
date	97.09.30.02.47.27;	author momjian;	state Exp;
branches;
next	1.1;

1.1
date	97.09.30.00.22.36;	author momjian;	state Exp;
branches;
next	;

1.9.2.1
date	99.09.13.18.47.06;	author momjian;	state dead;
branches;
next	1.9.2.2;

1.9.2.2
date	99.09.20.22.03.09;	author momjian;	state Exp;
branches;
next	;


desc
@@


1.18
log
@Remove pgaccess from CVS.  It has its own home now.
@
text
@Hi,

I've made a few changes in the pgaccess source to make it work with overloaded functions too.

The files that I changed are:

    pgaccess:		to run the modified version from the actual directory
    /lib/functions.old:	bugfix for working with overloaded functions, and another one: if somebody has made a mistake 
			in the editing process, the function was deleted, and recreation was not possibble, because the
			program returned an error message. Now the error message is still persists, but the procedure 
			doesn't take this into consideration.
			Added "Save as" button to create a new function with the same source. Very usefull when one needs
			a new function with slight modification to the source code.
			Then default window size is increased to let the larger source code visible without resizing.
    /lib/mainlib.tcl:	for the same bugfix, now the functionnames are represented with the parameters too, I think, that
			the structure is more visible now. Bugfix for the introduced functionalities, at deleteing object
			(function).
    /lib/tables.tcl:	I don't know how, but there is a difference. Maybe this is one of the misteries of the universe :)

So, in spite of the fact that this "hacking" is my first juorney in the tcl scripting language, I think
I've made a good job after all. I hope, this changes will be reflected in the future release of the pgaccess.

There can be several hidden bugs introduced by the changes, if you find one of them please let me know.

At this time I am using the changed software that helps me much more in the actual project.

Best regards,
Bartus Levente (bartus.l at bitel.hu)@


1.17
log
@Update to pgaccess 0.91.
@
text
@@


1.16
log
@Update copyright to 2002.
@
text
@d1 1
a1 1
---------------------------------------------------------------------------
d3 1
a3 2
Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
Portions Copyright (c) 1994, Regents of the University of California
d5 1
a5 4
Permission to use, copy, modify, and distribute this software and its
documentation for any purpose, without fee, and without a written agreement
is hereby granted, provided that the above copyright notice and this
paragraph and the following two paragraphs appear in all copies.
d7 15
a21 5
IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR
DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING
LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS
DOCUMENTATION, EVEN IF THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
d23 1
a23 5
THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATIONS TO
PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
d25 1
a25 59
---------------------------------------------------------------------------


PGACCESS 0.98.7 27 January 2001
================================
I dedicate this program to my little daughters Ana-Maria and Emilia and to my
wife for their understanding. I hope they will forgive me for spending so many
time far from them.



1. How to INSTALL ?

You will need a Tcl/Tk package greater than  8.0

For Unix users, unpack the pgaccess-xxx.tar.gz archieve in you preferred
directory (usually /usr/local).

Check where your "wish" program is and modify (if needed) the file
/usr/local/pgaccess/pgaccess and set variables PGACCESS_HOME and 
PATH_TO_WISH to the appropriate directories.

Include the /usr/local/pgaccess directory into your PATH or make a
symbolic link to it wherever you want (in PATH directories).
Example:

$ ln -s /usr/local/pgaccess/pgaccess /usr/bin/pgaccess

You will find also some documentation and FAQ in the doc directory.



2. Usage

You run it with the command:

        pgaccess [database]

[database] is optional.



3. Bug reporting

First of all : operating system, PostgreSQL version,Tcl/Tk version.
A more detailed story of what have you done when error occurred.
Tcl/Tk stops usually with a error message and there is a button there
"Stack Trace" and if you press it, you will see a detailed information
about the procedure containing the error. Please send it to me.
Some information about table structure, no. of fields, records would
be also good.

===========================================================================
You would find always the latest version at   http://www.flex.ro/pgaccess

Please feel free to e-mail me with any suggestion or bug description
that will help to improve it.

Constantin Teodorescu <teo@@flex.ro>
d27 2
@


1.15
log
@Add copyright mentions, per Tom Lane.
@
text
@d3 1
a3 1
Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
@


1.14
log
@Update to pgaccess 0.98.7.
@
text
@d3 2
a4 1
Copyright (c) 1994-7 Regents of the University of California
@


1.13
log
@Update pgaccess to 0.98.5
@
text
@d25 1
a25 1
PGACCESS 0.98.4 29 January 2000
d35 1
a35 2
You will need a Tcl/Tk package, at least Tcl 7.6 and Tk 4.2, recommended
Tcl/Tk 8.x
@


1.12
log
@Add 0.98.
@
text
@d25 1
a25 1
PGACCESS 0.98 29 August 1999
@


1.11
log
@Remove 0.96 for update to 0.98
@
text
@@


1.10
log
@
bring in missing files ... this isn't very clean, but :(
@
text
@@


1.9
log
@
From: Constantin Teodorescu <teo@@flex.ro>

UPgrade to 0.96 ..
@
text
@d25 1
a25 1
PGACCESS 0.96 9 March 1999
d33 1
a33 1
1.Why PgAccess ?
d35 2
a36 3
First of all because PostgreSQL lacks a graphical interface where you
can manage your tables, edit them, define queries, sequences and
functions.
d38 2
d41 3
d45 3
a47 1
2.How to INSTALL ?
d49 1
a49 2
You will need Tcl/Tk package, I am using now Tcl 7.6 and Tk 4.2.
PgAccess is running fine also on Tcl/Tk 8.0
d51 1
a51 6
Also, you will need the PostgreSQL to Tcl interface library, lined as a
Tcl/Tk 'load'-able module.  It is called libpgtcl and the source is
located in the PostgreSQL directory /src/interfaces/libpgtcl. 
Specifically, you will need a libpgtcl library that is 'load'-able from
Tcl/Tk.  This is technically different from an ordinary PostgreSQL
loadable object file, because libpgtcl is a collection of object files.
a52 4
Under Linux, this is called libpgtcl.so.  You will find a pre-compiled
copy of it for Linux i386 systems at : http://www.flex.ro/pgaccess. 
Just copy libpgtcl.so into your system library directory /usr/lib or
/lib and go for it.
a53 4
Under Windows, copy libpgtcl.dll and libpq.dll into C:\WINDOWS\SYSTEM directory.
Make sure you have Tcl/Tk at least version 8.0.0 for Microsoft Windows 95 & NT.
PgAccess has been checked with Tcl/Tk 8.0.4 version on Windows95 and Windows98
platforms.
d55 1
a55 6
Tcl/Tk 8.0.4 for Windows95 & NT can be downloaded from 
ftp://ftp.scriptics.com/pub/tcl/tcl8_0/tcl804.exe
It is 1833712 bytes long.


3.How to run it?
d59 1
a59 1
        wish -f pgaccess.tcl [database]
a62 72
Another way of loading the PostgreSQL library is running it with pgwish.
It's a wish compiled with libpgtcl library so it could understand the
commands for working with PostgreSQL. For this, remove the line "load
libpgtcl.so" from the source.  If your operating system has a different
library name or location, change the 'load libpgtcl.so' line in the
pgaccess.tcl file.


4.What does it now ?

- Opens any database on a specified host at the specified port, username and password
- Perform vacuum command.
- Saves preferences in ~/.pgaccessrc file

Tables
- opening multiple tables for viewing, max n records (configurable)
- column resizing by dragging the vertical grid lines
- text will wrap in cells now
- dynamic row height when editing
- table layout saved for every table
- import/export to external files (SDF,CSV)
- filter capabilities ,enter filter like price>3.14
- sort order capabilities ,enter manually the sort field(s)
- editing in place, double click the text you want to change
- record deleting , point the record, press Del key
- adding new records ,save new row with right-button-click on table for the moment
- table generator assistant
- table renaming and deleting (dropping)
- table information retrieving : owner, field information, indexes

Queries
- define, edit and store "user defined queries"
- save view layout
- can store queries as views
- execution of queries  with optional user input parameters ( select * from invoices where year=[parameter "Year of selection"] )
- viewing of select type queries result
- running action queries (insert, update, delete)
- visual query builder with drag & drop support, table aliasing

Sequences
- define
- inspect
- delete

Views
- defining them saving queries as views
- view them , with filtering and sorting capabilities
- design views
- delete them

Functions
- define , inspect , delete

Reports
- simple reports from a table (beta stage)
- change font,size and style of fields and labels
- load and save reports from the database
- table previews, sample postscript print

Forms
- open user defined forms
- form design module available
- query widget allowing access to a record set

Scripts
- define, modify and call user defined scripts

5.What it should do in the future ?

- sequence and function renaming
- more powerful report generator and viewer
- help on line
d65 1
a66 1
6. How you should report the errors?
d68 1
a68 1
A more detailed story of what have you done when error had occurred.
d71 1
a71 1
about the place where it stuck. Please send it to me.
@


1.9.2.1
log
@Update pgaccess 0.98
@
text
@@


1.9.2.2
log
@Add new files.
@
text
@d25 1
a25 1
PGACCESS 0.98 29 August 1999
d33 1
a33 1
1. How to INSTALL ?
d35 3
a37 2
You will need a Tcl/Tk package, at least Tcl 7.6 and Tk 4.2, recommended
Tcl/Tk 8.x
a38 2
For Unix users, unpack the pgaccess-xxx.tar.gz archieve in you preferred
directory (usually /usr/local).
a39 3
Check where your "wish" program is and modify (if needed) the file
/usr/local/pgaccess/pgaccess and set variables PGACCESS_HOME and 
PATH_TO_WISH to the appropriate directories.
d41 1
a41 3
Include the /usr/local/pgaccess directory into your PATH or make a
symbolic link to it wherever you want (in PATH directories).
Example:
d43 2
a44 1
$ ln -s /usr/local/pgaccess/pgaccess /usr/bin/pgaccess
d46 6
a51 1
You will find also some documentation and FAQ in the doc directory.
d53 4
d58 4
d63 6
a68 1
2. Usage
d72 1
a72 1
        pgaccess [database]
d76 72
a149 1
3. Bug reporting
d151 1
d153 1
a153 1
A more detailed story of what have you done when error occurred.
d156 1
a156 1
about the procedure containing the error. Please send it to me.
@


1.8
log
@Updated from 0.61->0.76
@
text
@a2 2


d22 1
d25 1
a25 2

PGACCESS 0.61 , 14 October 1997
d27 2
a28 2
I dedicate this program to my little 4 year daughter Ana-Maria and my wife
for their understanding. I hope they will forgive me for spending so many
d33 1
a33 1
1.Why PGACCESS ?
a38 3
I use Tcl/Tk because it's a powerfull language, and it took me only
four days of hard work to get it as you see it now.

d43 2
a44 2
You will need Tcl/Tk package, I am using now Tcl 7.6 and Tk 4.2. There
are some problems running under Tcl/Tk 8.0 but I will soon fix them.
d55 11
a65 2
Just copy libpgtcl.so into your system library director (/usr/lib) and
go for it.
d72 3
a74 1
        wish -f pgaccess.tcl
d86 1
a86 1
- Opens any database on a specified host at the specified port.
d88 1
a88 1
- Saves preferences in ~/pgaccessrc file
d91 1
a91 1
- opening tables for vieweing, max 200 records
d102 1
a102 1
- table generator assistant lizzard :-) (not wizzard)
d110 2
a111 2
- execution of queries
- vieweing of select type queries result
d113 1
a113 1
- query lizzard (visual query builder) with drag & drop support
d123 1
d129 10
d140 2
a144 1
- table design (add new fields, renaming, etc)
d146 1
a146 2
- script execution (simple SQL commands)
- a simple report generator and viewer
d153 1
a153 1
A more detailed story of what have you done when error had occured.
d156 1
a156 1
about the place where it stucks. Please send it to me.
d161 1
a161 1
You would find always the last version at   http://www.flex.ro/pgaccess
d164 1
a164 1
that will help to improve this.
@


1.7
log
@Updates for 6.2.1.  Update pgaccess to 0.61.  Add to HISTORY.
@
text
@@


1.6
log
@Update to version 0.51.
@
text
@d1 1
d27 1
a27 1
PGACCESS 0.51 , 3 October 1997
d87 2
d98 1
a98 1
- table information retrieving : owner, field information
@


1.5
log
@Update to 0.5.
@
text
@d26 1
a26 1
PGACCESS 0.5 , 3 October 1997
@


1.4
log
@Update to 0.4.
@
text
@d3 1
d26 1
a26 1
PGACCESS 0.4 , 1 October 1997
d67 1
a67 1
	wish -f pgaccess.tcl
d79 3
a81 2
Opens any database on a specified host at the specified port.
Perform vacuum command.
d104 1
@


1.3
log
@Cleanup.
@
text
@d25 1
a25 1
PGACCESS 0.3 , 29 September 1997
d27 3
d40 1
a40 1
three days of hard work to get it as you see it now.
d79 1
d88 3
a90 1
- editing in place
d93 2
d97 1
d102 1
d104 4
a107 3
- define them
- inspect them
- delete them
d113 4
d121 1
a122 1
- function manipulation (defining, vieweing)
d138 1
a138 2

You will always find the latest version at:  http://www.flex.ro/pgaccess
@


1.2
log
@Update readme.
@
text
@d63 1
a63 1
	wish -f pgaccess.tcl.
@


1.1
log
@Update pgtcl to 0.3.  Update README.
@
text
@d46 6
a51 4
Also, you will need the PostgreSQL to Tcl interface library.  It is
called libpgtcl and the source is located in the PostgreSQL directory
/src/interfaces/libpgtcl.  Specifically, you will need a libpgtcl
library that is 'load'-able from tck/tk.
@
