Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 1c264e6

Browse files
committed
From: Constantin Teodorescu <teo@flex.ro> UPgrade to 0.96 ..
1 parent f34240d commit 1c264e6

File tree

4 files changed

+411
-124
lines changed

4 files changed

+411
-124
lines changed

src/bin/pgaccess/README

Lines changed: 167 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,167 @@
1+
---------------------------------------------------------------------------
2+
3+
Copyright (c) 1994-7 Regents of the University of California
4+
5+
Permission to use, copy, modify, and distribute this software and its
6+
documentation for any purpose, without fee, and without a written agreement
7+
is hereby granted, provided that the above copyright notice and this
8+
paragraph and the following two paragraphs appear in all copies.
9+
10+
IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR
11+
DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING
12+
LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS
13+
DOCUMENTATION, EVEN IF THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE
14+
POSSIBILITY OF SUCH DAMAGE.
15+
16+
THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
17+
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
18+
AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
19+
ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATIONS TO
20+
PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
21+
22+
---------------------------------------------------------------------------
23+
24+
25+
PGACCESS 0.96 9 March 1999
26+
================================
27+
I dedicate this program to my little daughters Ana-Maria and Emilia and to my
28+
wife for their understanding. I hope they will forgive me for spending so many
29+
time far from them.
30+
31+
32+
33+
1.Why PgAccess ?
34+
35+
First of all because PostgreSQL lacks a graphical interface where you
36+
can manage your tables, edit them, define queries, sequences and
37+
functions.
38+
39+
40+
41+
2.How to INSTALL ?
42+
43+
You will need Tcl/Tk package, I am using now Tcl 7.6 and Tk 4.2.
44+
PgAccess is running fine also on Tcl/Tk 8.0
45+
46+
Also, you will need the PostgreSQL to Tcl interface library, lined as a
47+
Tcl/Tk 'load'-able module. It is called libpgtcl and the source is
48+
located in the PostgreSQL directory /src/interfaces/libpgtcl.
49+
Specifically, you will need a libpgtcl library that is 'load'-able from
50+
Tcl/Tk. This is technically different from an ordinary PostgreSQL
51+
loadable object file, because libpgtcl is a collection of object files.
52+
53+
Under Linux, this is called libpgtcl.so. You will find a pre-compiled
54+
copy of it for Linux i386 systems at : http://www.flex.ro/pgaccess.
55+
Just copy libpgtcl.so into your system library directory /usr/lib or
56+
/lib and go for it.
57+
58+
Under Windows, copy libpgtcl.dll and libpq.dll into C:\WINDOWS\SYSTEM directory.
59+
Make sure you have Tcl/Tk at least version 8.0.0 for Microsoft Windows 95 & NT.
60+
PgAccess has been checked with Tcl/Tk 8.0.4 version on Windows95 and Windows98
61+
platforms.
62+
63+
Tcl/Tk 8.0.4 for Windows95 & NT can be downloaded from
64+
ftp://ftp.scriptics.com/pub/tcl/tcl8_0/tcl804.exe
65+
It is 1833712 bytes long.
66+
67+
68+
3.How to run it?
69+
70+
You run it with the command:
71+
72+
wish -f pgaccess.tcl [database]
73+
74+
[database] is optional.
75+
76+
Another way of loading the PostgreSQL library is running it with pgwish.
77+
It's a wish compiled with libpgtcl library so it could understand the
78+
commands for working with PostgreSQL. For this, remove the line "load
79+
libpgtcl.so" from the source. If your operating system has a different
80+
library name or location, change the 'load libpgtcl.so' line in the
81+
pgaccess.tcl file.
82+
83+
84+
4.What does it now ?
85+
86+
- Opens any database on a specified host at the specified port, username and password
87+
- Perform vacuum command.
88+
- Saves preferences in ~/.pgaccessrc file
89+
90+
Tables
91+
- opening multiple tables for viewing, max n records (configurable)
92+
- column resizing by dragging the vertical grid lines
93+
- text will wrap in cells now
94+
- dynamic row height when editing
95+
- table layout saved for every table
96+
- import/export to external files (SDF,CSV)
97+
- filter capabilities ,enter filter like price>3.14
98+
- sort order capabilities ,enter manually the sort field(s)
99+
- editing in place, double click the text you want to change
100+
- record deleting , point the record, press Del key
101+
- adding new records ,save new row with right-button-click on table for the moment
102+
- table generator assistant
103+
- table renaming and deleting (dropping)
104+
- table information retrieving : owner, field information, indexes
105+
106+
Queries
107+
- define, edit and store "user defined queries"
108+
- save view layout
109+
- can store queries as views
110+
- execution of queries with optional user input parameters ( select * from invoices where year=[parameter "Year of selection"] )
111+
- viewing of select type queries result
112+
- running action queries (insert, update, delete)
113+
- visual query builder with drag & drop support, table aliasing
114+
115+
Sequences
116+
- define
117+
- inspect
118+
- delete
119+
120+
Views
121+
- defining them saving queries as views
122+
- view them , with filtering and sorting capabilities
123+
- design views
124+
- delete them
125+
126+
Functions
127+
- define , inspect , delete
128+
129+
Reports
130+
- simple reports from a table (beta stage)
131+
- change font,size and style of fields and labels
132+
- load and save reports from the database
133+
- table previews, sample postscript print
134+
135+
Forms
136+
- open user defined forms
137+
- form design module available
138+
- query widget allowing access to a record set
139+
140+
Scripts
141+
- define, modify and call user defined scripts
142+
143+
5.What it should do in the future ?
144+
145+
- sequence and function renaming
146+
- more powerful report generator and viewer
147+
- help on line
148+
149+
150+
151+
6. How you should report the errors?
152+
First of all : operating system, PostgreSQL version,Tcl/Tk version.
153+
A more detailed story of what have you done when error had occurred.
154+
Tcl/Tk stops usually with a error message and there is a button there
155+
"Stack Trace" and if you press it, you will see a detailed information
156+
about the place where it stuck. Please send it to me.
157+
Some information about table structure, no. of fields, records would
158+
be also good.
159+
160+
===========================================================================
161+
You would find always the latest version at http://www.flex.ro/pgaccess
162+
163+
Please feel free to e-mail me with any suggestion or bug description
164+
that will help to improve it.
165+
166+
Constantin Teodorescu <teo@flex.ro>
167+

src/bin/pgaccess/index.html

Lines changed: 102 additions & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -1,129 +1,134 @@
1-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2-
<HTML>
3-
<HEAD>
4-
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
5-
<META NAME="GENERATOR" CONTENT="Mozilla/4.07 [en] (X11; I; Linux 2.0.36 i586) [Netscape]">
6-
<TITLE>PgAccess - a Tcl/Tk PostgreSQL interface</TITLE>
7-
</HEAD>
8-
<BODY BGCOLOR="#FFFFFF">
1+
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
2+
<html>
3+
<head>
4+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
5+
<meta name="GENERATOR" content="Mozilla/4.5 [en] (X11; I; Linux 2.0.36 i586) [Netscape]">
6+
<title>PgAccess - a Tcl/Tk PostgreSQL interface</title>
7+
</head>
8+
<body bgcolor="#FFFFFF">
99

10-
<H1>
11-
PgAccess - a free database management tool for <A HREF="http://www.postgreSQL.org">PostgreSQL</A></H1>
10+
<h1>
11+
PgAccess - a free database management tool for <a href="http://www.postgreSQL.org">PostgreSQL</a></h1>
1212

13-
<HR>
14-
<LI>
15-
Download the last version of PgAccess <A HREF="pgaccess-0.93.tar.gz">(press
16-
shift and click this link) (tar.gz file)</A>&nbsp; or&nbsp;&nbsp; <A HREF="pgaccess.zip">this
17-
one (zip file for Windows)</A></LI>
13+
<hr>
14+
<li>
15+
Download the last version of PgAccess <a href="pgaccess-0.96.tar.gz">(press
16+
shift and click this link) (tar.gz file)</a>&nbsp; or&nbsp;&nbsp; <a href="pgaccess.zip">this
17+
one (zip file for Windows)</a></li>
1818

19-
<CENTER>
20-
<P><BR>Latest stable version of PgAccess is 0.93 , released 10 December
21-
1998 !
22-
<P><FONT SIZE=+2><B><FONT COLOR="#FF0000">NEW *</FONT></B> <B><FONT COLOR="#FF0000">NEW
23-
*</FONT></B></FONT><B><FONT COLOR="#FF0000">&nbsp;</FONT><FONT COLOR="#000000"><FONT SIZE=+1>
24-
==> </FONT><FONT SIZE=+2>Microsoft Windows compatible version</FONT></FONT></B>
25-
<P>&nbsp; <B><FONT COLOR="#FF0000">NEW *</FONT></B> ==== > <B>PostgreSQL
26-
user management, multiple table views</B>,. <B>Query parameters</B> (see
19+
<p><br>
20+
<center>
21+
<p>Latest stable version of PgAccess is 0.96 , released 9 March 1999
22+
!
23+
<p><font size=+2>PgAccess 0.93 and higher will not work from the begining
24+
with PostgreSQL 6.3.x !!<br>
25+
Read <a href="pg93patch.html">here</a> how to apply a simple patch in order
26+
to make it work !</font>
27+
<br>&nbsp;
28+
<p><font size=+2><b><font color="#FF0000">NEW *</font></b> <b><font color="#FF0000">NEW
29+
*</font></b></font><b><font color="#FF0000">&nbsp;</font><font color="#000000"><font size=+1>
30+
==> </font><font size=+2>Microsoft Windows compatible version</font></font></b>
31+
<p>&nbsp; <b><font color="#FF0000">NEW *</font></b> ==== > <b>PostgreSQL
32+
user management, multiple table views</b>,. <b>Query parameters</b> (see
2733
section Queries below)
28-
<P>Precompiled libpgtcl and libpq binaries and dll's for i386 are <A HREF="ftp://ftp.flex.ro/pub/pgaccess">here
29-
</A>!!!</CENTER>
34+
<p>Precompiled libpgtcl and libpq binaries and dll's for i386 are <a href="ftp://ftp.flex.ro/pub/pgaccess">here
35+
</a>!!!</center>
3036

31-
<BR>&nbsp;
32-
<H3>
33-
<FONT COLOR="#000080">Installation problems</FONT></H3>
37+
<h3>
38+
<font color="#000080">Installation problems</font></h3>
3439

35-
<UL>
36-
<LI>
40+
<ul>
41+
<li>
3742
Some problems related with locale special characters could be solved by
38-
this <A HREF="specialchars.html">simple patch</A></LI>
43+
this <a href="specialchars.html">simple patch</a></li>
3944

40-
<LI>
45+
<li>
4146
I think that there were some problems loading libpgtcl library. I invite
42-
you to read a <A HREF="index.html#libpgtcl">special section concerning
43-
libpgtcl</A></LI>
47+
you to read a <a href="index.html#libpgtcl">special section concerning
48+
libpgtcl</a></li>
4449

45-
<LI>
50+
<li>
4651
For Silicon Graphics Indigo computers, Irix operating system, there is
47-
a <A HREF="irix.html">HOWTO make PgAccess to work</A></LI>
48-
</UL>
52+
a <a href="irix.html">HOWTO make PgAccess to work</a></li>
53+
</ul>
4954

50-
<H3>
51-
<FONT COLOR="#191970">What does PgAccess now!</FONT></H3>
52-
Here are some screenshots from PgAccess windows : <A HREF="pic-pga-1.gif">Main
53-
window </A>, <A HREF="pic-pga-2.gif">table builder </A>, <A HREF="pic-pga-4.gif">table(query)
54-
view </A>, <A HREF="pic-pga-3.gif">visual query builder </A>.
55-
<P><B>Tables</B>
56-
<BR>- opening multiple tables for viewing, max. n records (changed by preferences
55+
<h3>
56+
<font color="#191970">What does PgAccess now!</font></h3>
57+
Here are some screenshots from PgAccess windows : <a href="pic-pga-1.gif">Main
58+
window </a>, <a href="pic-pga-2.gif">table builder </a>, <a href="pic-pga-4.gif">table(query)
59+
view </a>, <a href="pic-pga-3.gif">visual query builder </a>.
60+
<p><b>Tables</b>
61+
<br>- opening multiple tables for viewing, max. n records (changed by preferences
5762
menu)
58-
<BR>- column resizing, dragging the vertical grid line (better in table
63+
<br>- column resizing, dragging the vertical grid line (better in table
5964
space rather than in the table header)
60-
<BR>- text wrap in cells - layout saved for every table
61-
<BR>- import/export to external files (SDF,CSV)
62-
<BR>- filter capabilities (enter filter like (price>3.14)
63-
<BR>- sort order capabilities (enter manually the sort field(s))
64-
<BR>- editing in place
65-
<BR>- improved table generator assistant
66-
<BR>- improved field editing
67-
<BR><B>Queries</B>
68-
<BR>- define , edit and stores "user defined queries"
69-
<BR>- store queries as views
70-
<BR>- execution of queries with optional user input parameters ( select
65+
<br>- text wrap in cells - layout saved for every table
66+
<br>- import/export to external files (SDF,CSV)
67+
<br>- filter capabilities (enter filter like (price>3.14)
68+
<br>- sort order capabilities (enter manually the sort field(s))
69+
<br>- editing in place
70+
<br>- improved table generator assistant
71+
<br>- improved field editing
72+
<br><b>Queries</b>
73+
<br>- define , edit and stores "user defined queries"
74+
<br>- store queries as views
75+
<br>- execution of queries with optional user input parameters ( select
7176
* from invoices where year=[parameter "Year of selection"] )
72-
<BR>- viewing of select type queries result
73-
<BR>- query deleting and renaming
74-
<BR>- visual query builder with drag &amp; drop capabilities. For any of
77+
<br>- viewing of select type queries result
78+
<br>- query deleting and renaming
79+
<br>- visual query builder with drag &amp; drop capabilities. For any of
7580
you who had installed the Tcl/Tk plugin for Netscape Navigator, you can
76-
see it at work <A HREF="qbtclet.html">clicking here</A>
77-
<BR><B>Sequences</B>
78-
<BR>- defines sequences, delete them and inspect them
79-
<BR><B>Functions</B>
80-
<BR>- define, inspect and delete functions in SQL language
81-
<BR><B>Reports</B>
82-
<BR>- design and display simple reports from tables
83-
<BR>- fields and labels, font changing, style and size
84-
<BR>- saves and loads report description from database
85-
<BR>- show report previews, sample postscript output file
86-
<BR><B>Forms</B>
87-
<BR>- open user defined forms
88-
<BR>- form design module available
89-
<BR>- query widget available, controls bound to query results
90-
<BR>- <A HREF="forms.html">click here</A> for a description of forms and
81+
see it at work <a href="qbtclet.html">clicking here</a>
82+
<br><b>Sequences</b>
83+
<br>- defines sequences, delete them and inspect them
84+
<br><b>Functions</b>
85+
<br>- define, inspect and delete functions in SQL language
86+
<br><b>Reports</b>
87+
<br>- design and display simple reports from tables
88+
<br>- fields and labels, font changing, style and size
89+
<br>- saves and loads report description from database
90+
<br>- show report previews, sample postscript output file
91+
<br><b>Forms</b>
92+
<br>- open user defined forms
93+
<br>- form design module available
94+
<br>- query widget available, controls bound to query results
95+
<br>- <a href="forms.html">click here</a> for a description of forms and
9196
how they can be used
92-
<BR><B>Scripts</B>
93-
<BR>- define, modify and call user defined scripts
94-
<BR><B>Users</B>
95-
<BR>- define and modify user parameters
96-
<P>Here is <A HREF="pga-rad.html">a special section concerning forms and
97-
scripts</A> .
98-
<P>This program is protected by the following <A HREF="copyright.html">copyright</A>
99-
<P>If you have any comment, suggestion for improvements, please feel free
100-
to e-mail to : <A HREF="mailto:teo@flex.ro">teo@flex.ro</A>
101-
<P><B><FONT COLOR="#FF1493"><FONT SIZE=+2>Mailing list for PgAccess </FONT></FONT></B><A HREF="maillist.html">Here
102-
you will find how to subscribe to this mailing list</A>.
103-
<P>
104-
<HR>
105-
<H1>
106-
More information about libpgtcl - downloads</H1>
97+
<br><b>Scripts</b>
98+
<br>- define, modify and call user defined scripts
99+
<br><b>Users</b>
100+
<br>- define and modify user parameters
101+
<p>Here is <a href="pga-rad.html">a special section concerning forms and
102+
scripts</a> .
103+
<p>This program is protected by the following <a href="copyright.html">copyright</a>
104+
<p>If you have any comment, suggestion for improvements, please feel free
105+
to e-mail to : <a href="mailto:teo@flex.ro">teo@flex.ro</a>
106+
<p><b><font color="#FF1493"><font size=+2>Mailing list for PgAccess </font></font></b><a href="maillist.html">Here
107+
you will find how to subscribe to this mailing list</a>.
108+
<p>
109+
<hr>
110+
<h1>
111+
More information about libpgtcl - downloads</h1>
107112
&nbsp;&nbsp;&nbsp;&nbsp; Also, you will need the PostgreSQL to Tcl interface
108113
library, lined as a Tcl/Tk 'load'-able module. It is called libpgtcl and
109114
the source is located in the PostgreSQL directory /src/interfaces/libpgtcl.
110115
Specifically, you will need a libpgtcl library that is 'load'-able from
111116
Tcl/Tk.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; This is technically different from
112117
an ordinary PostgreSQL loadable object file, because libpgtcl is a collection
113118
of object files. Under Linux, this is called libpgtcl.so.
114-
<P>&nbsp;&nbsp;&nbsp;&nbsp; One of the solutions is to remove from the
115-
source the line containing <B>load libpgtcl.so </B>and to load pgaccess.tcl
119+
<p>&nbsp;&nbsp;&nbsp;&nbsp; One of the solutions is to remove from the
120+
source the line containing <b>load libpgtcl.so </b>and to load pgaccess.tcl
116121
not with wish, but with pgwish (or wishpg) that wish that was linked with
117122
libpgtcl library! I do not recommend this one.
118-
<P>&nbsp;&nbsp;&nbsp;&nbsp; If you have installed RedHat 5.x, you should
123+
<p>&nbsp;&nbsp;&nbsp;&nbsp; If you have installed RedHat 5.x, you should
119124
get the last distribution kit of PostgreSQL and compile it from scratch.
120125
RedHat 5.x is using some new versions of libraries and you have to compile
121-
and install again at least <B>libpq </B>and <B><TT>libpgtcl </TT></B>libraries.
122-
<P>&nbsp;&nbsp;&nbsp; PostgreSQL 6.4 release has a minor bug. I does not
126+
and install again at least <b>libpq </b>and <b><tt>libpgtcl </tt></b>libraries.
127+
<p>&nbsp;&nbsp;&nbsp; PostgreSQL 6.4 release has a minor bug. I does not
123128
includ by default the crypt lib when compiling libpgtcl. So, you will need
124129
to manually add a -lcrypt to SHLIB line in Makefile in src/interfaces/libpgtcl
125130
and then make clean and make again. The new libpgtcl.so library is properly
126131
configured to run pgaccess.
127-
<BR>&nbsp;
128-
</BODY>
129-
</HTML>
132+
<br>&nbsp;
133+
</body>
134+
</html>

0 commit comments

Comments
 (0)