Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit22347d6

Browse files
committed
Update to pgaccess 0.91.
1 parentf459099 commit22347d6

File tree

19 files changed

+1980
-1531
lines changed

19 files changed

+1980
-1531
lines changed

‎src/bin/pgaccess/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
#
33
# Makefile for src/bin/pgaccess
44
#
5-
# Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
5+
# Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
66
# Portions Copyright (c) 1994, Regents of the University of California
77
#
8-
# $Header: /cvsroot/pgsql/src/bin/pgaccess/Attic/Makefile,v 1.17 2002/06/20 20:29:42 momjian Exp $
8+
# $Header: /cvsroot/pgsql/src/bin/pgaccess/Attic/Makefile,v 1.18 2002/07/02 06:11:23 momjian Exp $
99
#
1010
#-------------------------------------------------------------------------
1111

‎src/bin/pgaccess/README

Lines changed: 21 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1,82 +1,28 @@
1-
---------------------------------------------------------------------------
1+
Hi,
22

3-
Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
4-
Portions Copyright (c) 1994, Regents of the University of California
3+
I've made a few changes in the pgaccess source to make it work with overloaded functions too.
54

6-
Permission to use, copy, modify, and distribute this software and its
7-
documentation for any purpose, without fee, and without a written agreement
8-
is hereby granted, provided that the above copyright notice and this
9-
paragraph and the following two paragraphs appear in all copies.
5+
The files that I changed are:
106

11-
IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR
12-
DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING
13-
LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS
14-
DOCUMENTATION, EVEN IF THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE
15-
POSSIBILITY OF SUCH DAMAGE.
7+
pgaccess:to run the modified version from the actual directory
8+
/lib/functions.old:bugfix for working with overloaded functions, and another one: if somebody has made a mistake
9+
in the editing process, the function was deleted, and recreation was not possibble, because the
10+
program returned an error message. Now the error message is still persists, but the procedure
11+
doesn't take this into consideration.
12+
Added "Save as" button to create a new function with the same source. Very usefull when one needs
13+
a new function with slight modification to the source code.
14+
Then default window size is increased to let the larger source code visible without resizing.
15+
/lib/mainlib.tcl:for the same bugfix, now the functionnames are represented with the parameters too, I think, that
16+
the structure is more visible now. Bugfix for the introduced functionalities, at deleteing object
17+
(function).
18+
/lib/tables.tcl:I don't know how, but there is a difference. Maybe this is one of the misteries of the universe :)
1619

17-
THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
18-
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
19-
AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
20-
ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATIONS TO
21-
PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
20+
So, in spite of the fact that this "hacking" is my first juorney in the tcl scripting language, I think
21+
I've made a good job after all. I hope, this changes will be reflected in the future release of the pgaccess.
2222

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

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

26-
PGACCESS 0.98.7 27 January 2001
27-
================================
28-
I dedicate this program to my little daughters Ana-Maria and Emilia and to my
29-
wife for their understanding. I hope they will forgive me for spending so many
30-
time far from them.
31-
32-
33-
34-
1. How to INSTALL ?
35-
36-
You will need a Tcl/Tk package greater than 8.0
37-
38-
For Unix users, unpack the pgaccess-xxx.tar.gz archieve in you preferred
39-
directory (usually /usr/local).
40-
41-
Check where your "wish" program is and modify (if needed) the file
42-
/usr/local/pgaccess/pgaccess and set variables PGACCESS_HOME and
43-
PATH_TO_WISH to the appropriate directories.
44-
45-
Include the /usr/local/pgaccess directory into your PATH or make a
46-
symbolic link to it wherever you want (in PATH directories).
47-
Example:
48-
49-
$ ln -s /usr/local/pgaccess/pgaccess /usr/bin/pgaccess
50-
51-
You will find also some documentation and FAQ in the doc directory.
52-
53-
54-
55-
2. Usage
56-
57-
You run it with the command:
58-
59-
pgaccess [database]
60-
61-
[database] is optional.
62-
63-
64-
65-
3. Bug reporting
66-
67-
First of all : operating system, PostgreSQL version,Tcl/Tk version.
68-
A more detailed story of what have you done when error occurred.
69-
Tcl/Tk stops usually with a error message and there is a button there
70-
"Stack Trace" and if you press it, you will see a detailed information
71-
about the procedure containing the error. Please send it to me.
72-
Some information about table structure, no. of fields, records would
73-
be also good.
74-
75-
===========================================================================
76-
You would find always the latest version at http://www.flex.ro/pgaccess
77-
78-
Please feel free to e-mail me with any suggestion or bug description
79-
that will help to improve it.
80-
81-
Constantin Teodorescu <teo@flex.ro>
82-
27+
Best regards,
28+
Bartus Levente (bartus.l at bitel.hu)

‎src/bin/pgaccess/copyright.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,15 @@
99
<BR><TT></TT>&nbsp;
1010
<BR><TT></TT>&nbsp;<TT></TT>
1111

12-
<P><TT>Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group</TT>
13-
<P><TT>Portions Copyright (c) 1994, Regents of the University of California</TT>
12+
<P><TT>Copyright (c) 1994-7 Regents of the University of California</TT><TT></TT>
1413

1514
<P><TT>Permission to use, copy, modify, and distribute this software and
1615
its</TT>
1716
<BR><TT>documentation for any purpose, without fee, and without a written
1817
agreement</TT>
1918
<BR><TT>is hereby granted, provided that the above copyright notice and
2019
this</TT>
21-
<BR><TT>paragraph and the following two paragraphs appear in all copies.</TT>
20+
<BR><TT>paragraph and the following two paragraphs appear in all copies.</TT><TT></TT>
2221

2322
<P><TT>IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY
2423
PARTY FOR</TT>
@@ -27,7 +26,7 @@
2726
<BR><TT>LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS</TT>
2827
<BR><TT>DOCUMENTATION, EVEN IF THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED
2928
OF THE</TT>
30-
<BR><TT>POSSIBILITY OF SUCH DAMAGE.</TT>
29+
<BR><TT>POSSIBILITY OF SUCH DAMAGE.</TT><TT></TT>
3130

3231
<P><TT>THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,</TT>
3332
<BR><TT>INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY</TT>

‎src/bin/pgaccess/doc/html/copyright.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<BR><TT></TT>&nbsp;
1010
<BR><TT></TT>&nbsp;<TT></TT>
1111

12-
<P><TT>Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group</TT>
12+
<P><TT>Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group</TT>
1313
<P><TT>Portions Copyright (c) 1994, Regents of the University of California</TT>
1414

1515
<P><TT>Permission to use, copy, modify, and distribute this software and

‎src/bin/pgaccess/doc/html/tutorial/copyright.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<BR><TT></TT>&nbsp;
1010
<BR><TT></TT>&nbsp;<TT></TT>
1111

12-
<P><TT>Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group</TT>
12+
<P><TT>Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group</TT>
1313
<P><TT>Portions Copyright (c) 1994, Regents of the University of California</TT>
1414

1515
<P><TT>Permission to use, copy, modify, and distribute this software and
-43.5 KB
Binary file not shown.

‎src/bin/pgaccess/doc/html/tutorial/tut_edit.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ <h2>Adding records</h2>
2929
Notice that there are two consecutive tildes to allow for the fact that this
3030
particular entry doesn't have anything in the<b>Editor</b> field.
3131
You can then perform a<em>Query</em> as follows:<p>
32-
<samp>COPY psyref FROM '/home/jim/newref.txt'WITH DELIMITER
32+
<samp>COPY psyref FROM '/home/jim/newref.txt'USING DELIMITERS
3333
'~';</samp><p>
3434
This will read the records from<samp>newref.txt</samp> and insert them into the
3535
table<samp>psyref</samp>. See the PostgreSQL documentation under the headings

‎src/bin/pgaccess/lib/database.tcl

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
namespace eval Database {
22

3+
# i have no idea why views were being discriminated against here
4+
# when i first touched the code you could only make reports from tables
5+
# i just commented out two lines below
6+
# -cmaj
7+
38
proc{getTablesList} {} {
49
global CurrentDB PgAcVar
510
set tlist {}
@@ -16,10 +21,10 @@ global CurrentDB PgAcVar
1621
}else {
1722
set sysconstraint""
1823
}
19-
wpg_select$CurrentDB"select relname from pg_class where (relkind='r')$sysconstraint order by relname" rec {
20-
if {![info exists itsaview($rec(relname))]} {
24+
wpg_select$CurrentDB"select relname from pg_class where (relkind='r')or (relkind='v')$sysconstraint order by relname" rec {
25+
#if {![info exists itsaview($rec(relname))]} {
2126
lappend tlist$rec(relname)
22-
}
27+
#}
2328
}
2429
} gterrmsg]} {
2530
showError$gterrmsg

‎src/bin/pgaccess/lib/help/copy.hlp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ and the name must be specified from the viewpoint of the backend. If stdin or st
55
" {} "
66
COPY \[ BINARY \] table \[ WITH OIDS \]
77
FROM { 'filename' | stdin }
8-
\[WITH DELIMITER 'delimiter' \]
8+
\[USING DELIMITERS 'delimiter' \]
99
COPY \[ BINARY \] table \[ WITH OIDS \]
1010
TO { 'filename' | stdout }
11-
\[WITH DELIMITER 'delimiter' \]
11+
\[USING DELIMITERS 'delimiter' \]
1212

1313
" {code} "Inputs" {bold} "
1414

@@ -44,7 +44,7 @@ COPY \[ BINARY \] table \[ WITH OIDS \]
4444
" {} "Usage" {bold} "
4545

4646
The following example copies a table to standard output, using a vertical bar \(\"|\"\) as the field delimiter:
47-
COPY country TO stdoutWITH DELIMITER '|';
47+
COPY country TO stdoutUSING DELIMITERS '|';
4848

4949
To copy data from a Unix file into a table \"country\":
5050
COPY country FROM '/usr1/proj/bray/sql/country_data';
@@ -93,12 +93,13 @@ The format for each instance in the file is as follows. Note that this format mu
9393

9494
The " {} "BINARY" {bold} " keyword will force all data to be stored/read as binary objects rather than as text. It is somewhat faster than the normal copy command, but is not generally portable, and the files \
9595
generated are somewhat larger, although this factor is highly dependent on the data itself. By default, a text copy uses a tab \
96-
\(\"\\t\"\) character as a delimiter. The delimiter may also be changed to any other single character with the keyword phraseWITH DELIMITER. Characters in data fields which happen to match the delimiter character will be quoted.
96+
\(\"\\t\"\) character as a delimiter. The delimiter may also be changed to any other single character with the keyword phraseUSING DELIMITERS. Characters in data fields which happen to match the delimiter character will be quoted.
9797

9898
You must have select access on any table whose values are read by " {} "COPY" {bold} ", and either insert or update access to a table into which values are being inserted by \
9999
" {} "COPY" {bold} ". The backend also needs appropriate Unix permissions for any file read or written by \
100100
" {} "COPY" {bold} ".
101101

102-
The keyword phrase " {} "WITH DELIMITER" {bold} " specifies a single character to be used for all delimiters between columns.
102+
The keyword phrase " {} "USING DELIMITERS" {bold} " specifies a single character to be used for all delimiters between columns. If multiple characters are specified in the delimiter string, only the first \
103+
character is used.
103104

104105
Tip: Do not confuse " {} "COPY" {bold} " with the psql instruction \\copy. "

‎src/bin/pgaccess/lib/help/copyrights.hlp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.pgaw:Help.f.t insert end \
22
"Copyrights\n\n" {title} \
33
"
4-
PostgreSQL is Copyright � 1996-2002, PostgreSQL Global Development Group.
4+
PostgreSQL is Copyright � 1996-2001, PostgreSQL Global Development Group.
55

66
Postgres95 is Copyright � 1994, Regents of the University of California.
77

‎src/bin/pgaccess/lib/help/reports.hlp

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,37 @@
11
.pgaw:Help.f.t insert end "The Reports module is still in alpha stage.
22

3-
The module should be able to design and execute a report based on a table\
4-
or from an existing query.
3+
DONE:
4+
# Allows for reports based on tables or views.
5+
# Formulas are just Tcl evals, where column names are available as variables.
6+
Try: concat \$colname1 \$colname2
7+
# Pictures must be gif or bmp files (and not stored in the database).
8+
# Page header is the first record on a page, page footer is the last.
9+
# Detail section is all the records that can fit on a page, row by row.
10+
# Multiple pages.
11+
# Printing puts the report into a Postscript file.\
12+
The pages printed are the ones in and between the boxes on preview mode.
13+
You can also pipe the output by entering it in the dialog when prompted.\
14+
Try: |lpr
15+
# Page resizing can be done by typing in the Page size boxes.
16+
# Report resizing can be done by typing in the Report size boxes and hitting\
17+
enter or dragging the window and clicking in it with the mouse.
518

6-
Grouping, sorting, subtotals, expressions should be implemented.
7-
Report output can be printed as a Postscript file.
19+
DOING:
20+
# Allow for reports based on queries.
21+
# Report headers and footers.
22+
# Grouping, sorting, subtotals.
23+
# Drawing simple shapes like lines or circles.
24+
# Font choice needs expanding.
25+
# Putting stuff into columns when the page is wider than the report.
826

9-
For the moment I have no time to do that so volunteers are welcome.
27+
Also, there are a couple Postscript items to be addressed:
28+
# Since the Tk canvas widget outputs Encapsulated Postscript,\
29+
each page printed is a separate piece of Encapsulated Postscript.\
30+
Putting all those pieces together into one Postscript file was\
31+
a bit of a kluge, so right now you get every other page blank. Doh.
32+
# Each time a picture is displayed, the Postscript grows by about 10 times\
33+
the size of the picture. It seems in general Postscript gets enormous\
34+
fast, at least with the Tk canvas widget's method of outputting it.
35+
36+
Please send patches, proposals, problems, pickles, etc., to Chris Maj <cmaj@freedomcorpse.info> or visit pgaccess.org
1037
"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp