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

Commit79434a3

Browse files
committed
Update TODO list.
1 parent392f304 commit79434a3

File tree

20 files changed

+497
-67
lines changed

20 files changed

+497
-67
lines changed

‎doc/TODO

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ COMMANDS
132132
* ALTER TABLE ADD COLUMN to inherited table put column in wrong place
133133
(see TODO.detail/inherit)
134134
* Add ALTER TABLE DROP/ALTER COLUMN feature
135-
* Allow CLUSTER on all tables at once, and improve CLUSTER
135+
* Allow CLUSTER on all tables at once, and improve CLUSTER, loses NOT
136+
NULL specification on table(see TODO.detail/cluster)
136137
* Generate error on CREATE OPERATOR of ~~, ~ and and ~*
137138
* Add SIMILAR TO to allow character classes, 'pg_[a-c]%'
138139
* Auto-destroy sequence on DROP of table with SERIAL(Ryan)

‎doc/TODO.detail/alpha

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ From owner-pgsql-hackers@hub.org Fri May 14 16:00:46 1999
22
Received: from renoir.op.net (root@renoir.op.net [209.152.193.4])
33
by candle.pha.pa.us (8.9.0/8.9.0) with ESMTP id QAA02173
44
for <maillist@candle.pha.pa.us>; Fri, 14 May 1999 16:00:44 -0400 (EDT)
5-
Received: from hub.org (hub.org [209.167.229.1]) by renoir.op.net (o1/$Revision: 1.5 $) with ESMTP id QAA02824 for <maillist@candle.pha.pa.us>; Fri, 14 May 1999 16:00:45 -0400 (EDT)
5+
Received: from hub.org (hub.org [209.167.229.1]) by renoir.op.net (o1/$Revision: 1.6 $) with ESMTP id QAA02824 for <maillist@candle.pha.pa.us>; Fri, 14 May 1999 16:00:45 -0400 (EDT)
66
Received: from hub.org (hub.org [209.167.229.1])
77
by hub.org (8.9.3/8.9.3) with ESMTP id PAA47798;
88
Fri, 14 May 1999 15:57:54 -0400 (EDT)

‎doc/TODO.detail/arrays

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ From owner-pgsql-hackers@hub.org Wed Nov 25 19:01:02 1998
22
Received: from renoir.op.net (root@renoir.op.net [209.152.193.4])
33
by candle.pha.pa.us (8.9.0/8.9.0) with ESMTP id TAA16399
44
for <maillist@candle.pha.pa.us>; Wed, 25 Nov 1998 19:01:01 -0500 (EST)
5-
Received: from hub.org (majordom@hub.org [209.47.148.200]) by renoir.op.net (o1/$Revision: 1.5 $) with ESMTP id SAA05250 for <maillist@candle.pha.pa.us>; Wed, 25 Nov 1998 18:53:12 -0500 (EST)
5+
Received: from hub.org (majordom@hub.org [209.47.148.200]) by renoir.op.net (o1/$Revision: 1.6 $) with ESMTP id SAA05250 for <maillist@candle.pha.pa.us>; Wed, 25 Nov 1998 18:53:12 -0500 (EST)
66
Received: from localhost (majordom@localhost)
77
by hub.org (8.9.1/8.9.1) with SMTP id SAA17798;
88
Wed, 25 Nov 1998 18:49:38 -0500 (EST)

‎doc/TODO.detail/cluster

Lines changed: 351 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,351 @@
1+
From ChrUllrich@gmx.de Fri Jun 18 15:01:15 1999
2+
Received: from mail2.gmx.net (qmailr@mail2.gmx.net [194.221.183.62])
3+
by candle.pha.pa.us (8.9.0/8.9.0) with SMTP id PAA02123
4+
for <maillist@candle.pha.pa.us>; Fri, 18 Jun 1999 15:01:13 -0400 (EDT)
5+
Received: (qmail 1465 invoked by uid 0); 18 Jun 1999 18:40:59 -0000
6+
Received: from pc19f7c08.dip.t-online.de (HELO christian.ullrich.net) (193.159.124.8)
7+
by mail2.gmx.net with SMTP; 18 Jun 1999 18:40:59 -0000
8+
Received: (from chris@localhost)
9+
by christian.ullrich.net (8.9.3/8.9.3) id UAA02806
10+
for maillist@candle.pha.pa.us; Fri, 18 Jun 1999 20:33:54 +0200
11+
Date: Fri, 18 Jun 1999 20:33:54 +0200
12+
From: Christian Ullrich <ChrUllrich@gmx.de>
13+
To: Bruce Momjian <maillist@candle.pha.pa.us>
14+
Subject: Re: [GENERAL] Two questions about 6.5
15+
Message-ID: <19990618203354.A2716@christian.ullrich.net>
16+
References: <19990617204118.B8536@christian.ullrich.net> <199906181631.MAA29003@candle.pha.pa.us>
17+
Mime-Version: 1.0
18+
Content-Type: text/plain; charset=iso-8859-1
19+
Content-Transfer-Encoding: 8bit
20+
X-Mailer: Mutt 0.95.6i
21+
In-Reply-To: <199906181631.MAA29003@candle.pha.pa.us>; from Bruce Momjian on Fri, Jun 18, 1999 at 12:31:17PM -0400
22+
Status: RO
23+
24+
On Fri, Jun 18, 1999 at 12:31:17PM -0400, Bruce Momjian wrote:
25+
26+
> Does this work for you? It works here:
27+
>
28+
> test=> create table te(x int, y int);
29+
> CREATE
30+
> test=> create unique index i_te on te(x,y);
31+
> CREATE
32+
> test=> cluster i_te on te;
33+
> CLUSTER
34+
35+
It works. But why doesn't it work on my tables:
36+
37+
create table prautor(
38+
nr int4,
39+
pi int4,
40+
primary key(nr,pi));
41+
42+
create table prauflage(
43+
nr int4,
44+
au int4,
45+
pl text,
46+
be text,
47+
st int4,
48+
vh bool,
49+
ex int4,
50+
primary key(nr,au));
51+
52+
prd=> create unique index i_te on prauflage(nr,au);
53+
CREATE
54+
prd=> cluster i_te on prauflage;
55+
ERROR: Cannot create unique index. Table contains non-unique values
56+
57+
--
58+
Christian Ullrich
59+
Registrierter Linux-User #125183
60+
61+
"Sie k�nnen nach R'ed'mond fliegen -- aber Sie werden sterben"
62+
63+
From owner-pgsql-hackers@hub.org Thu Apr 16 15:00:41 1998
64+
Received: from hub.org (hub.org [209.47.148.200])
65+
by candle.pha.pa.us (8.8.5/8.8.5) with ESMTP id PAA25361
66+
for <maillist@candle.pha.pa.us>; Thu, 16 Apr 1998 15:00:36 -0400 (EDT)
67+
Received: from localhost (majordom@localhost) by hub.org (8.8.8/8.7.5) with SMTP id OAA28081; Thu, 16 Apr 1998 14:57:37 -0400 (EDT)
68+
Received: by hub.org (TLB v0.10a (1.23 tibbs 1997/01/09 00:29:32)); Thu, 16 Apr 1998 14:57:13 -0400 (EDT)
69+
Received: (from majordom@localhost) by hub.org (8.8.8/8.7.5) id OAA28031 for pgsql-hackers-outgoing; Thu, 16 Apr 1998 14:57:03 -0400 (EDT)
70+
Received: from bjke.com (firewall-user@ganymede.bjke.com [144.210.8.38]) by hub.org (8.8.8/8.7.5) with ESMTP id OAA27987 for <pgsql-hackers@hub.org>; Thu, 16 Apr 1998 14:56:23 -0400 (EDT)
71+
Received: by bjke.com; id OAA29631; Thu, 16 Apr 1998 14:56:06 -0400 (EDT)
72+
Received: from cpsmail.cpsgroup.com(144.210.12.11) by gauntlet.bjke.com via smap (3.2)
73+
id xma029416; Thu, 16 Apr 98 14:55:54 -0400
74+
Received: by dal_cps.cpsgroup.com with Internet Mail Service (5.0.1458.49)
75+
id <H40Q5ZTY>; Thu, 16 Apr 1998 13:56:28 -0500
76+
Message-ID: <F10BB1FAF801D111829B0060971D839F2330CA@dal_cps.cpsgroup.com>
77+
From: "Jackson, DeJuan" <djackson@cpsgroup.com>
78+
To: PostgreSQL Hackers Mailing List <pgsql-hackers@hub.org>
79+
Cc: PostgreSQL Questions Mailing List <pgsql-questions@postgreSQL.org>
80+
Subject: [HACKERS] Bug or Short between my brain and the keyboard?
81+
Date: Thu, 16 Apr 1998 13:56:27 -0500
82+
X-Priority: 3
83+
MIME-Version: 1.0
84+
X-Mailer: Internet Mail Service (5.0.1458.49)
85+
Content-Type: text/plain
86+
Sender: owner-pgsql-hackers@hub.org
87+
Precedence: bulk
88+
Status: RO
89+
90+
Just thought I'd try the cluster command. What am I doing wrong.
91+
ReadHat 5.0
92+
6.3.1 rpm's
93+
94+
[djackson@www]$ psql template1
95+
Welcome to the POSTGRESQL interactive sql monitor:
96+
Please read the file COPYRIGHT for copyright terms of POSTGRESQL
97+
98+
type \? for help on slash commands
99+
type \q to quit
100+
type \g or terminate with semicolon to execute query
101+
You are currently connected to the database: template1
102+
103+
template1=> \d
104+
Couldn't find any tables, sequences or indices!
105+
template1=> \l
106+
datname |datdba|datpath
107+
---------+------+---------
108+
template1| 100|template1
109+
postgres | 100|postgres
110+
(2 rows)
111+
112+
template1=> create database test;
113+
CREATEDB
114+
template1=> \connect test
115+
connecting to new database: test
116+
test=> create table list (k int2);
117+
CREATE
118+
test=> insert into list values (1);
119+
INSERT 33769 1
120+
test=> insert into list select max(k)+1;
121+
.
122+
.
123+
.
124+
test=> select * from list;
125+
k
126+
-
127+
1
128+
2
129+
3
130+
4
131+
5
132+
6
133+
(6 rows)
134+
135+
test=> create table list2 (k1 int2 NOT NULL, k2 int2 NOT NULL);
136+
CREATE
137+
test=> create UNIQUE INDEX l1 ON list2(k1, k2);
138+
CREATE
139+
test=> create UNIQUE INDEX l2 ON list2(k2, k1);
140+
CREATE
141+
test=> insert into list2 select l1.k, l2.k from list as l1, list as l2;
142+
INSERT 0 36
143+
test=> select * from list2;
144+
k1|k2
145+
--+--
146+
1| 1
147+
2| 1
148+
3| 1
149+
.
150+
.
151+
.
152+
4| 6
153+
5| 6
154+
6| 6
155+
(36 rows)
156+
157+
test=> vacuum verbose analyze list2;
158+
NOTICE: Rel list2: Pages 1: Changed 0, Reapped 0, Empty 0, New 0; Tup
159+
36: Vac 0, Crash 0, UnUsed 0, MinLen 44, MaxLen 44; Re-using:
160+
Free/Avail. Space 0/0; EndEmpty/Avail. Pages 0/0. Elapsed 0/0 sec.
161+
NOTICE: Ind l2: Pages 2; Tuples 36. Elapsed 0/0 sec.
162+
NOTICE: Ind l1: Pages 2; Tuples 36. Elapsed 0/0 sec.
163+
VACUUM
164+
test=> cluster l1 on list2;
165+
ERROR: Cannot create unique index. Table contains non-unique values
166+
test=> cluster l2 on list2;
167+
PQexec() -- Request was sent to backend, but backend closed the channel
168+
before responding.
169+
This probably means the backend terminated abnormally before or
170+
while processing the request.
171+
172+
173+
From owner-pgsql-ports@hub.org Tue Jun 22 21:03:40 1999
174+
Received: from hub.org (hub.org [209.167.229.1])
175+
by candle.pha.pa.us (8.9.0/8.9.0) with ESMTP id VAA00995
176+
for <maillist@candle.pha.pa.us>; Tue, 22 Jun 1999 21:03:38 -0400 (EDT)
177+
Received: from hub.org (hub.org [209.167.229.1])
178+
by hub.org (8.9.3/8.9.3) with ESMTP id VAA24665;
179+
Tue, 22 Jun 1999 21:00:15 -0400 (EDT)
180+
(envelope-from owner-pgsql-ports@hub.org)
181+
Received: by hub.org (TLB v0.10a (1.23 tibbs 1997/01/09 00:29:32)); Tue, 22 Jun 1999 20:57:28 +0000 (EDT)
182+
Received: (from majordom@localhost)
183+
by hub.org (8.9.3/8.9.3) id UAA24107
184+
for pgsql-ports-outgoing; Tue, 22 Jun 1999 20:57:27 -0400 (EDT)
185+
(envelope-from owner-pgsql-ports@postgreSQL.org)
186+
X-Authentication-Warning: hub.org: majordom set sender to owner-pgsql-ports@postgreSQL.org using -f
187+
Received: (from nobody@localhost)
188+
by hub.org (8.9.3/8.9.3) id UAA24081;
189+
Tue, 22 Jun 1999 20:57:21 -0400 (EDT)
190+
(envelope-from nobody)
191+
Date: Tue, 22 Jun 1999 20:57:21 -0400 (EDT)
192+
From: Unprivileged user <nobody@hub.org>
193+
Message-Id: <199906230057.UAA24081@hub.org>
194+
To: pgsql-ports@postgreSQL.org
195+
Reply-to: Vladimir Dobrokhotov <dvs@rybvod.kamchatka.su>
196+
Subject: [PORTS] Port Bug Report: 1.backend crash when frontend do cluster (sometimes!?), 2.cluster does not work
197+
Sender: owner-pgsql-ports@postgreSQL.org
198+
Precedence: bulk
199+
Status: ROr
200+
201+
202+
============================================================================
203+
POSTGRESQL BUG REPORT TEMPLATE
204+
============================================================================
205+
206+
207+
Your name : Vladimir Dobrokhotov
208+
Your email address : dvs@rybvod.kamchatka.su
209+
210+
Category : runtime: back-end
211+
Severity : critical
212+
213+
Summary: 1.backend crash when frontend do cluster (sometimes!?), 2.cluster does not work
214+
215+
System Configuration
216+
--------------------
217+
Operating System : FreeBSD 2.2.5-RELEASE
218+
219+
PostgreSQL version : 6.5
220+
221+
Compiler used : gcc 2.7.2.1
222+
223+
Hardware:
224+
---------
225+
Pentium, 32 RAM
226+
227+
Versions of other tools:
228+
------------------------
229+
gmake 3.75, flex 2.5.4
230+
231+
--------------------------------------------------------------------------
232+
233+
Problem Description:
234+
--------------------
235+
This problem come from pg6.2.
236+
cluster (unique index btree(4 filelds varchar(4))) not work - "cannot create unique index. Table contains non-unique values."
237+
In pg6.4.2 command "cluster ind_un.." destroy all indexes on the table but index "ind_un" detroy fields form 2...
238+
In pg6.5 - random one from:
239+
1) ERROR: cannot create unique index. Table contains non-unique values.
240+
2) pgReadData() -- backend closed ... (need restart frontend)
241+
3) pgReadData() -- backend closed ... (need restart backend, frontend)
242+
4) pgReadData() -- backend closed ... (need restart backend, frontend, remove file "temp_1ddbc".)
243+
244+
245+
--------------------------------------------------------------------------
246+
247+
Test Case:
248+
----------
249+
=>create table sns (n1 varchar(4), n2 varchar(4), n3 varchar(4), n4 varchar(4), name text);
250+
CREATE
251+
=>insert into sns values ('0','00','','','a');
252+
INSERT 278624 1
253+
=>insert into sns values ('0','01','','','b');
254+
INSERT 278626 1
255+
=>create unique index sn_b on sns using btree(n1,n2,n3,n4);
256+
CREATE
257+
=>cluster sn_b on sns;
258+
ERROR: Cannot create unique index. Table contains non-unique values
259+
=>cluster sn_b on sns;
260+
pgReadData() -- backend closed the channel unexpectedly.
261+
This probably means the backend terminated abnormally
262+
before or while processing the request.
263+
We have lost the connection to backend, so further processing is impossible.
264+
Terminating.
265+
#psql dv14
266+
Connection to database 'dv14' failed.
267+
connectDB() -- ...
268+
#su postgres
269+
$~/rc.local
270+
postmaster.
271+
^D#psql dv14
272+
Welcome to the POSTGRES interactive sql monitor.
273+
...
274+
=>cluster sn_b on sns;
275+
ERROR: cannot create temp_44050
276+
(rm ~/data/base/dv14/temp_44050)
277+
=>cluster sn_b on sns;
278+
ERROR: Cannot create unique index. Table contains non-unique values
279+
=>cluster sn_b on sns;
280+
pgReadData() -- backend closed the channel unexpectedly.
281+
This probably means the backend terminated abnormally
282+
before or while processing the request.
283+
We have lost the connection to backend, so further processing is impossible.
284+
Terminating.
285+
#psql dv14
286+
Welcome to the POSTGRES interactive sql monitor.
287+
...
288+
=>
289+
290+
291+
--------------------------------------------------------------------------
292+
293+
Solution:
294+
---------
295+
296+
297+
--------------------------------------------------------------------------
298+
299+
300+
301+
From owner-pgsql-hackers@hub.org Sun Aug 29 03:58:30 1999
302+
Received: from renoir.op.net (root@renoir.op.net [209.152.193.4])
303+
by candle.pha.pa.us (8.9.0/8.9.0) with ESMTP id DAA20206
304+
for <maillist@candle.pha.pa.us>; Sun, 29 Aug 1999 03:58:29 -0400 (EDT)
305+
Received: from hub.org (hub.org [216.126.84.1]) by renoir.op.net (o1/$Revision: 1.1 $) with ESMTP id DAA00347 for <maillist@candle.pha.pa.us>; Sun, 29 Aug 1999 03:44:32 -0400 (EDT)
306+
Received: from hub.org (hub.org [216.126.84.1])
307+
by hub.org (8.9.3/8.9.3) with ESMTP id DAA91360;
308+
Sun, 29 Aug 1999 03:35:58 -0400 (EDT)
309+
(envelope-from owner-pgsql-hackers@hub.org)
310+
Received: by hub.org (TLB v0.10a (1.23 tibbs 1997/01/09 00:29:32)); Sun, 29 Aug 1999 03:31:06 +0000 (EDT)
311+
Received: (from majordom@localhost)
312+
by hub.org (8.9.3/8.9.3) id DAA90785
313+
for pgsql-hackers-outgoing; Sun, 29 Aug 1999 03:30:17 -0400 (EDT)
314+
(envelope-from owner-pgsql-hackers@postgreSQL.org)
315+
Received: from flex.flex.ro (IDENT:root@[193.230.255.4])
316+
by hub.org (8.9.3/8.9.3) with ESMTP id DAA90462
317+
for <pgsql-hackers@postgreSQL.org>; Sun, 29 Aug 1999 03:29:38 -0400 (EDT)
318+
(envelope-from teo@flex.ro)
319+
Received: from flex.ro (IDENT:teo@teo.flex.ro [193.230.255.3])
320+
by flex.flex.ro (8.9.3/8.9.3) with ESMTP id KAA30242
321+
for <pgsql-hackers@postgreSQL.org>; Sun, 29 Aug 1999 10:30:47 +0300
322+
Message-ID: <37C8E2FE.5DBA4389@flex.ro>
323+
Date: Sun, 29 Aug 1999 07:36:30 +0000
324+
From: Constantin Teodorescu <teo@flex.ro>
325+
Organization: FLEX Consulting Braila
326+
X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.11 i586)
327+
X-Accept-Language: en
328+
MIME-Version: 1.0
329+
To: "pgsql-hackers@postgreSQL.org" <pgsql-hackers@postgreSQL.org>
330+
Subject: [HACKERS] Cluster on (index-name) loose NOT NULL properties
331+
Content-Type: text/plain; charset=us-ascii
332+
Content-Transfer-Encoding: 7bit
333+
Sender: owner-pgsql-hackers@postgreSQL.org
334+
Precedence: bulk
335+
Status: RO
336+
337+
Hello all,
338+
339+
trying the new version of PgAccess (hope tomorrow will be available) I
340+
discovered that clustering a table on an index loose also the NOT NULL
341+
attributes from the original table. I know that the permissions are also
342+
lost but didn't read anywhere about the NOT NULL.
343+
344+
Best regards,
345+
346+
Constantin Teodorescu
347+
FLEX Consulting Braila, ROMANIA
348+
349+
************
350+
351+

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp