X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id D6B80D1B472 for ; Fri, 28 Nov 2003 15:12:39 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 46311-03 for ; Fri, 28 Nov 2003 11:12:11 -0400 (AST) Received: from frankenbride.clueinc.net (xd84b4366.ip.e-nt.net [216.75.67.102]) by svr1.postgresql.org (Postfix) with ESMTP id A9D69D1B490 for ; Fri, 28 Nov 2003 11:12:07 -0400 (AST) Received: by frankenbride.clueinc.net (Postfix, from userid 16220) id 55F1FB8D3; Fri, 28 Nov 2003 10:12:12 -0500 (EST) Date: Fri, 28 Nov 2003 10:12:12 -0500 From: Jamie Lawrence To: pgsql-admin@postgresql.org Subject: Ah! pgsql query leads to evil Message-ID: <20031128151212.GD24082@clueinc.net> Mail-Followup-To: pgsql-admin@postgresql.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.28i Organization: clue inc X-URL: http://www.clueinc.net/ X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/478 X-Sequence-Number: 11465 OK, my baseline tables are a states table, from commonly available sources, and cities, from the Census. \d's are: cal=# \d states Table "public.states" Column | Type | Modifiers ------------+-----------------------------+-------------------------------------------------------- id | integer | not null default nextval('public.states_id_seq'::text) name | text | abbr | text | createdate | timestamp without time zone | default now() moddate | timestamp without time zone | Indexes: states_pkey primary key btree (id) Triggers: timestamp_tr cal=# \d cities Table "public.cities" Column | Type | Modifiers ------------+-----------------------------+-------------------------------------------------------- id | integer | not null default nextval('public.cities_id_seq'::text) name | text | createdate | timestamp without time zone | default now() moddate | timestamp without time zone | states_id | integer | Indexes: cities_pkey primary key btree (id) Foreign Key constraints: valid_state FOREIGN KEY (states_id) REFERENCES states(id) ON UPDATE NO ACTION ON DELETE NO ACTION Triggers: timestamp_tr (Timestamps are an ease of use thing - we can purge data if someone screws up easily. Otherwise, 'id' is defined as SERIAL PRIMARY KEY, states_id is INT REFERECES states) I enter a query like so, and get the following errors: cal=# select * from states, cities; server sent binary data ("B" message) without prior row description ("T" message) server sent binary data ("B" message) without prior row description ("T" message) server sent data ("D" message) without prior row description ("T" message) server sent binary data ("B" message) without prior row description ("T" message) server sent data ("D" message) without prior row description ("T" message) server sent data ("D" message) without prior row description ("T" message) server sent data ("D" message) without prior row description ("T" message) Enter data to be copied followed by a newline. End with a backslash and a period on a line by itself. >> \. unexpected response from server; first received character was "a" lost synchronization with server, resetting connection Asynchronous NOTIFY '2003-11-26 18:15:20.548647' from backend with pid 30 received. Asynchronous NOTIFY 'n' from backend with pid 1969386866 received. Asynchronous NOTIFY '2003-11-26 18:15:20.548647' from backend with pid 30 received. Asynchronous NOTIFY 't' from backend with pid 1836020325 received. Asynchronous NOTIFY '' from backend with pid 1986359929 received. I know that's a pathological query, and I performed it only because Software Gone Wrong did it, and I was looking to see what happened. The result just seems really, really wrong, and I'm wondering if anyone has seen something like that before. This is PG 7.3.4, on Debian/stable on a DEC box (compiled here, but we didn't do anything strange to it). -j -- Jamie Lawrence jal@jal.org Prediction is very difficult, especially of the future. - Niels Bohr