Re: [BUGS] BUG #4618: nolock changes first column name of query result set to 'nolock'

2009-01-16 Thread Michael Fuhr
lumn (presumably movieid) is aliased as "nolock". The following query probably would have worked (not that I'm recommending it): select * from netflix.ratings with (nolock) where nolock = ... -- Michael Fuhr -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs

Re: [BUGS] BUG #4257: about unicode extend

2008-06-21 Thread Michael Fuhr
.1 changed UNICODE to UTF8 and added support for 4-byte characters, so the fact that the error says "UNICODE" and your database doesn't appear to support 4-byte characters makes me wonder if you're running 8.0 or earlier. -- Michael Fuhr -- Sent via pgsql-bugs mailing li

Re: [BUGS] BUG #3965: UNIQUE constraint fails on long column values

2008-02-20 Thread Michael Fuhr
s to > > calculate. > > I thought it was the exact opposite, quoting from RFC1321: And if you *do* need cryptographic security then don't use MD5, and consider using SHA-256 instead of SHA-1. See RFC 4270 for discussion. ftp://ftp.rfc-editor.org/in-

Re: [BUGS] BUG #3935: about Unicode values

2008-02-06 Thread Michael Fuhr
that value in an integer column? I don't think PostgreSQL supports numbers in non-Latin scripts unless your underlying strtol() and sprintf() functions do. -- Michael Fuhr ---(end of broadcast)--- TIP 1: if posting/reading through Usenet, please

Re: [BUGS] BUG #3394: Partial search not working

2007-06-19 Thread Michael Fuhr
On Tue, Jun 19, 2007 at 02:55:07PM +0530, Murali Doss wrote: > No result but the matching data is available in table What values are not matching that you expect to match? Can you provide a reproducible test case? What are your locale settings and encoding? -- Michael F

Re: [BUGS] BUG #3395: varchar[] --> Warning vendor specific

2007-06-19 Thread Michael Fuhr
ps that somebody could perform to see the same thing you're seeing. -- Michael Fuhr ---(end of broadcast)--- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your

Re: [BUGS] BUG #3269: PSQL does not display error output

2007-05-11 Thread Michael Fuhr
;show client_min_messages"? -- Michael Fuhr ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

Re: [BUGS] alter column type (from timestamp to date) violates not null

2007-03-10 Thread Michael Fuhr
sparc-sun-solaris2.9, compiled by GCC gcc (GCC) 3.4.2 (1 row) -- Michael Fuhr ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [BUGS] BUG #2975: UNIQUE INDEX doesn't work

2007-02-14 Thread Michael Fuhr
in at least one of the constrained columns." This has been discussed before; search the archives for words like "null", "unique", and "comparison" or "compare". -- Michael Fuhr ---(end of broadcast)-

Re: [BUGS] BUG #2975: UNIQUE INDEX doesn't work

2007-02-11 Thread Michael Fuhr
serting NULL into the column(s) with the unique index? -- Michael Fuhr ---(end of broadcast)--- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message c

Re: [BUGS] BUG #2895: Private Use Unicode character crashes server when using ILIKE

2007-01-23 Thread Michael Fuhr
ostgres.c:1004 #10 0x005864ee in PostgresMain (argc=4, argv=0x8844a8, username=0x884390 "mfuhr") at postgres.c:3232 #11 0x0055c31a in ServerLoop () at postmaster.c:2863 #12 0x0055d90a in PostmasterMain (argc=5, argv=0x8828c0) at postmaster.c:941 #13 0x0051d5e3 in main (argc=5, argv=0x8828c0) at main.c:265 -- Michael Fuhr ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [BUGS] BUG #2895: Private Use Unicode character crashes server when using ILIKE

2007-01-16 Thread Michael Fuhr
en uses LIKE. Locale-specific regular expression patterns still do not work in these encodings. -- Michael Fuhr ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [BUGS] 8.1.2 -32768::smallint

2006-12-13 Thread Michael Fuhr
On Wed, Dec 13, 2006 at 08:34:38AM -0700, Michael Fuhr wrote: > On Wed, Dec 13, 2006 at 03:03:43PM -, Jean-Gérard Pailloncy wrote: > > On PostgreSQL 8.1.2 > > select -32768::smallint > > throws the error > > ERROR: smallint out of range > > I think the cast

Re: [BUGS] 8.1.2 -32768::smallint

2006-12-13 Thread Michael Fuhr
t) which is why you're getting "smallint out of range." This should work: select (-32768)::smallint -- Michael Fuhr ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [BUGS] BUG #2791: Error while commiting

2006-11-29 Thread Michael Fuhr
active/plpgsql-structure.html "Functions and trigger procedures are always executed within a transaction established by an outer query -- they cannot start or commit that transaction, since there would be no context for them to execute in." -- Michael Fuhr ---(end of broa

Re: [BUGS] BUG #2631: database locking problem

2006-09-17 Thread Michael Fuhr
(but are you sure this is not a PostGIS bug?) ... What does "SELECT postgis_full_version()" show? If you still have the 8.1.3 system then please post the output from both 8.1.3 and 8.1.4. -- Michael Fuhr ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [BUGS] BUG #2629: libpq - Cannot deallocate prepared statement created with PQprepare()

2006-09-16 Thread Michael Fuhr
t;DEALLOCATE \"MyQuery\""); See "Identifiers and Key Words" in the "SQL Syntax" chapter of the documentation for more information about quoted identifiers. http://www.postgresql.org/docs/8.1/interactive/sql-syntax.html#SQL-SYNTAX-IDENTIFIERS -- Michael Fuhr --

Re: [BUGS] distance operator dont work

2006-08-13 Thread Michael Fuhr
our own functions in PL/pgSQL or C or some other language and create operators that call those functions. Such customizations survive migrations via database dumps so you don't have to remember to patch the code every time you upgrade. If you're working with spatial data then you

Re: [BUGS] BUG #2572: ALTER TABLE ADD COLUMN

2006-08-13 Thread Michael Fuhr
r | test=> SELECT test(); test -- (1 row) test=> \d foo Table "public.foo" Column | Type | Modifiers ----+-+--- id | integer | newcol | integer | -- Michael Fuhr ---(end of broadcast)--

Re: [BUGS] BUG #2553: Outer join bug

2006-07-28 Thread Michael Fuhr
w. As Tom Lane already pointed out, you're probably needing a WHERE clause. Does this do what you want? SELECT ia.name, iac.internal FROM information_assets AS ia LEFT OUTER JOIN information_asset_categories AS iac ON ia.category_id = iac.id WHERE ia.id = 21; -- M

Re: [BUGS] BUG #2553: Outer join bug

2006-07-27 Thread Michael Fuhr
part of the outer join condition that restricts rows from information_asset_categories (T2); it doesn't restrict rows from information_assets (T1). If you don't want all rows from information_assets then why are you using an outer join? -- Michael Fuhr ---(end

Re: [BUGS] BUG #2549: problem with NATURAL JOIN

2006-07-25 Thread Michael Fuhr
exactly those column names that appear in both input tables." http://www.postgresql.org/docs/8.1/interactive/sql-select.html#SQL-FROM "NATURAL is shorthand for a USING list that mentions all columns in the two tables that have the same names." -- Michael Fuhr -

Re: [BUGS] BUG #2533: PostGIS- envelope function returns wrong results

2006-07-16 Thread Michael Fuhr
polygon as one of the parameters to overlaps()? -- Michael Fuhr ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

Re: [BUGS] BUG #2526: records lost

2006-07-12 Thread Michael Fuhr
pg_database; Do the server logs contain any unusual messages? Have you had any hardware problems or system crashes? -- Michael Fuhr ---(end of broadcast)--- TIP 4: Have you searched our list archives? http://archives.postgresql.org

Re: [BUGS] BUG #2521: pg_restore is hanging

2006-07-09 Thread Michael Fuhr
ny arguments and that it's waiting to read from standard input (the terminal window)? If the dump file contains SQL statements then why are you using pg_restore instead of psql? -- Michael Fuhr ---(end of broadcast)--- TIP 9: In versions below

Re: [BUGS] BUG #2481: select from table's join with geometries doesn't go

2006-06-16 Thread Michael Fuhr
On Fri, Jun 16, 2006 at 06:53:28AM -0600, Michael Fuhr wrote: > The query plan shouldn't affect psql's behavior but selecting > different columns might. Notice that the estimated column width > is much higher when you select the geometry column than when you > don't:

Re: [BUGS] BUG #2481: select from table's join with geometries doesn't go

2006-06-16 Thread Michael Fuhr
oadable from http://www.faunalia.it/download/bug2481.tar.gz A HEAD request against that file shows it to be 116M (121747346), not 16M, and it appears to be on a slow link (curl estimates over an hour to download). Can you create a smaller test case? -- Michael Fuhr -

Re: [BUGS] BUG #2481: select from table's join with geometries doesn't go

2006-06-15 Thread Michael Fuhr
re beneath it? If not then you might need to adjust your coredumpsize resource limit. -- Michael Fuhr ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [BUGS] BUG #2451: Short column names return no values within function

2006-05-23 Thread Michael Fuhr
aren't relevant -- the problem is due to using the same label to refer to multiple things. Use different names for the variables or qualify the column names in the query ("SELECT t.symbol, t.rs03, t.rs12, t.peg FROM testbug AS t ..."). -- Michael Fuhr ---(en

Re: [BUGS] constraints & tableoid [pgsql8.1]

2006-04-11 Thread Michael Fuhr
ot; Apparently a new row's tableoid isn't set until the row is actually inserted. Tableoid would be set in an AFTER trigger, but if the intent is to prevent inheritance then enforcing the constraint with a trigger on the base table wouldn't work because triggers aren't inherited. -- Michael Fuhr ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [BUGS] BUG #2380: Sequence problem

2006-04-06 Thread Michael Fuhr
ssion? Are you using connection pooling? -- Michael Fuhr ---(end of broadcast)--- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly

Re: [BUGS] BUG #2379: Duplicate pkeys in table

2006-04-06 Thread Michael Fuhr
ning the above query. -- Michael Fuhr ---(end of broadcast)--- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly

Re: [BUGS] BUG #2306: Duplicate primary key

2006-03-08 Thread Michael Fuhr
5077; SET enable_seqscan TO off; SET enable_indexscan TO on; SELECT ctid, xmin, xmax, * FROM hierarchy WHERE id >= 5077; SELECT ctid, xmin, xmax, * FROM hierarchy WHERE id = 5077; -- Michael Fuhr ---(end of broadcast)--- TIP 9: In versions below 8.

Re: [BUGS] BUG #2289: insert into tables not working

2006-02-28 Thread Michael Fuhr
re those transactions using? A SERIALIZABLE transaction won't see data committed by other transactions after its snapshot has been taken. If none of this helps then could you post a series of steps that somebody could use to duplicate the problem? -- Michael Fuhr --

Re: [BUGS] BUG #2289: insert into tables not working

2006-02-28 Thread Michael Fuhr
or its operations will be rolled back unless you protect them with savepoints. -- Michael Fuhr ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

Re: [BUGS] BUG #2284: missing sequence number

2006-02-27 Thread Michael Fuhr
last number. http://www.postgresql.org/docs/faqs.FAQ.html#item4.11.4 -- Michael Fuhr ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [BUGS] Re : BUG #2251: NOT IN clause is not working correctly

2006-02-26 Thread Michael Fuhr
n). According to past discussion it's per the spec. -- Michael Fuhr ---(end of broadcast)--- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message

Re: [BUGS] Re : BUG #2251: NOT IN clause is not working correctly

2006-02-26 Thread Michael Fuhr
OT IN (SELECT a_id FROM b WHERE a_id IS NOT NULL); id 2 (1 row) According to past discussion this behavior is per the SQL specification. Search the list archives for more information. -- Michael Fuhr ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [BUGS] BUG #2265: CREATE TABLE when AUTOCOMMIT is OFF

2006-02-17 Thread Michael Fuhr
o-phase commit? Why do you think it's "surely" involved? Let's see a complete test case before jumping to conclusions. -- Michael Fuhr ---(end of broadcast)--- TIP 4: Have you searched our list archives? http://archives.postgresql.org

Re: [BUGS] BUG #2265: CREATE TABLE when AUTOCOMMIT is OFF

2006-02-16 Thread Michael Fuhr
what earlier command failed and why. -- Michael Fuhr ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

Re: [BUGS] BUG #2260: PGCrypto Memory Problem

2006-02-15 Thread Michael Fuhr
On Wed, Feb 15, 2006 at 02:28:33PM -0500, Tom Lane wrote: > Michael Fuhr <[EMAIL PROTECTED]> writes: > > Did you test OpenSSL builds? > > Nope, I did not, and that's a good point. Will try again with openssl. My non-OpenSSL build shows no memory leak, so the l

Re: [BUGS] BUG #2260: PGCrypto Memory Problem

2006-02-15 Thread Michael Fuhr
On Wed, Feb 15, 2006 at 01:43:18PM -0500, Tom Lane wrote: > Michael Fuhr <[EMAIL PROTECTED]> writes: > > I can reproduce this in 8.1.3 on FreeBSD 6.0 and Solaris 9. Here's > > a standalone test case: > > > SELECT crypt(x::text, '$1$salt') FROM gene

Re: [BUGS] BUG #2260: PGCrypto Memory Problem

2006-02-15 Thread Michael Fuhr
ing the query with 'salt' instead of '$1$salt' doesn't exhibit a memory leak, not even with more iterations from generate_series. -- Michael Fuhr ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [BUGS] BUG #2236: extremely slow to get unescaped bytea data

2006-02-09 Thread Michael Fuhr
ld add weight to Tom's suggestion that an old libpq might be responsible. -- Michael Fuhr ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match

Re: [BUGS] Please get me out of this ASAP

2006-02-09 Thread Michael Fuhr
that somebody updated an existing record? How many times has the problem happened? If more than once, how often? Can you think of anything that happened with the database around the time the problem started? Have you enabled statement logging to see what statements are actually being executed? -- Michael Fuhr ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [BUGS] BUG #2236: extremely slow to get unescaped bytea data

2006-02-08 Thread Michael Fuhr
a way to tell pg_query and friends that you want binary results, you could retrieve the binary image data without having to mess with encoding and decoding. Even if you're satisfied with what you're doing, it would be interesting to find an explanation for pg_unescape_bytea's perfor

Re: [BUGS] BUG #2236: extremely slow to get unescaped bytea data

2006-02-07 Thread Michael Fuhr
at does something like the following show? $tstart = microtime(true); $data = pg_unescape_bytea(pg_fetch_result($res, 'data')); $dt = microtime(true) - $tstart; header("Content-Type: text/plain"); printf("unescape time = %.3fms, %d bytes\n", $dt * 1000.0, strlen($data)

Re: [BUGS] BUG #2224: unlogical syntax error

2006-01-31 Thread Michael Fuhr
lete program so we can see everything you're doing. You might also try asking in the pgsql-jdbc list to see if anybody there has heard of this problem. -- Michael Fuhr ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [BUGS] BUG #2224: unlogical syntax error

2006-01-30 Thread Michael Fuhr
uot;xyz" at character 12 LINE 1: SELECT abc xyz FROM foo; ^ -- Michael Fuhr ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

Re: [BUGS] BUG #2217: serial in rule and trigger

2006-01-29 Thread Michael Fuhr
ocumentation > hasn't been modified. Sequences don't roll back so they can have holes; that's long-standing behavior that hasn't changed. Can you provide a test case that behaves differently in different versions of PostgreSQL? -- Michael Fuhr ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [BUGS] BUG #2208: Low performance on select

2006-01-25 Thread Michael Fuhr
indexed and individual execution > of each query is very fast. Could you post the EXPLAIN ANALYZE output of each query? Have you tuned any of your postgresql.conf settings, in particular shared_buffers? How much memory do you have? -- Michael Fuhr ---(e

Re: [BUGS] BUG #2198: Now returns always same date and time during a session

2006-01-23 Thread Michael Fuhr
es during transactions." > To get again the right date, it is necessary do disconnect and reconnect. Do you have autocommit disabled? I'd guess all of your function calls are happening in the same transaction. You shouldn't have to reconnect; starting a new transaction shou

Re: [BUGS] BUG #2178: NOT IN command don't work

2006-01-19 Thread Michael Fuhr
ression "1 NOT IN (2,NULL,3)" evaluates to NULL because NULL means "unknown." This comes up occasionally; see the archives for past discussion. http://archives.postgresql.org/pgsql-sql/2005-12/msg00219.php http://archives.postgresql.org/pgsql-sql/2005-10/msg00227.php -- Micha

Re: [BUGS] BUG #2180: log_statement=mod does not work

2006-01-19 Thread Michael Fuhr
nstalled)? What does "SHOW log_statement" show? Are you sure you're looking in the right log file? Do you see other log entries? -- Michael Fuhr ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [BUGS] createlang plpgsql failed

2006-01-11 Thread Michael Fuhr
ow up in the server logs? What operating system and version? What version of PostgreSQL and where did you get it (installed a package, built it yourself from source, etc.)? If you got a core dump, can you get a stack trace from it? -- Michael Fuhr -

Re: [BUGS] BUG #2157: Disabling trigger

2006-01-09 Thread Michael Fuhr
version you're running? DISABLE TRIGGER is in the documentation for 8.1 but not for 8.0. http://www.postgresql.org/docs/8.0/interactive/sql-altertable.html http://www.postgresql.org/docs/8.1/interactive/sql-altertable.html -- Michael Fuhr -

Re: [BUGS] BUG #2148: Crashes on simple statement

2006-01-06 Thread Michael Fuhr
eks ago: http://archives.postgresql.org/pgsql-bugs/2005-12/msg00128.php http://archives.postgresql.org/pgsql-committers/2005-12/msg00296.php http://archives.postgresql.org/pgsql-committers/2005-12/msg00297.php -- Michael Fuhr ---(end of broadcast)--- TIP 5: d

Re: [BUGS] autovacuum process (PID ...) was terminated by signal 11

2006-01-04 Thread Michael Fuhr
is saying? The commit message he posted had a date of 2005-11-28; 8.1.1 wasn't tagged until 2005-12-08. -- Michael Fuhr ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

Re: [BUGS] BUG #2136: plperl doesn't work, plperlu - yes

2005-12-31 Thread Michael Fuhr
an't call method "reval" on an undefined value at line > 1. Can you use the Safe module in standalone Perl scripts? What happens if you run the following? #!/usr/bin/perl use strict; require Safe; print "Safe::VERSION = $Safe::VERSION\n"; my $foo = new Safe(&

Re: [BUGS] BUG #2131: SQL Query Bug ?

2005-12-27 Thread Michael Fuhr
ESCE(col1, '') || COALESCE(col2, '') FROM foo; col1 | col2 | ?column? --+--+-- aaa | bbb | aaabbb ccc | | ccc | ddd | ddd (3 rows) -- Michael Fuhr ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

Re: [BUGS] BUG #2117: inconsistency in sum

2005-12-15 Thread Michael Fuhr
[Please copy the mailing list on replies.] On Thu, Dec 15, 2005 at 07:32:54PM +0100, Adam Kolany wrote: > Michael Fuhr napisa?(a): > >On Thu, Dec 15, 2005 at 11:03:55AM +, Adam Kolany wrote: > >>stoff=> select sum(wplyw),sum(wydatek), sum(wplyw)-sum(wydatek) from >

Re: [BUGS] BUG #2117: inconsistency in sum

2005-12-15 Thread Michael Fuhr
| sum | ?column? > ---+-+-- > 73745 | 6712.55 | 67032.5 > (1 row) What data types are wplyw and wydatek? -- Michael Fuhr ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [BUGS] BUG #2115: If we CLOSE a Closed Cursor subsequent OPENs fail.

2005-12-14 Thread Michael Fuhr
section of code that it protects. -- Michael Fuhr ---(end of broadcast)--- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly

Re: [BUGS] BUG #2109: NULL=NULL is false

2005-12-13 Thread Michael Fuhr
is option is not a general fix for bad programming." It would be better to use standard-conforming expressions such as IS DISTINCT FROM (standard since SQL:1999, as I recall). test=> SELECT NULL = NULL; ?column? -- (1 row) test=> SELECT NULL IS DISTINCT FROM NULL;

Re: [BUGS] BUG #2106: EXPLAIN ANALYZE with SELECT query causes a single backend server process to segfault

2005-12-10 Thread Michael Fuhr
rgv=0x82e4d98, username=0x82e4d78 "mfuhr") at postgres.c:3168 #10 0x081684e6 in ServerLoop () at postmaster.c:2853 #11 0x08169a01 in PostmasterMain (argc=3, argv=0xbfbfecb8) at postmaster.c:943 #12 0x08133612 in main (argc=3, argv=0xbfbfecb8) at main.c:256 -- Michael Fuhr ---

Re: [BUGS] date overflows

2005-12-03 Thread Michael Fuhr
1563.php -- Michael Fuhr ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [BUGS] BUGs for function returning a SETOF values on linux postgres 8.0.4, the same function runs correctly on win postgres 8.1

2005-12-01 Thread Michael Fuhr
equire functions to issue a RETURN statement (Tom) This is a byproduct of the newly added OUT and INOUT functionality. RETURN can be omitted when it is not needed to provide the function's return value. -- Michael Fuhr ---(end of broadcast)-

Re: [BUGS] BUG #2056: to_char no long takes time as input?

2005-11-20 Thread Michael Fuhr
to_char('13:00:00'::interval,'HH:MM AM'); ERROR: invalid format specification for an interval value HINT: Intervals are not tied to specific calendar dates. This looks like the commit that changed the behavior in 8.1 (the hint was added later): http://archives.postgresql

Re: [BUGS] Double sequence increase on single insert with RULE on targeted table

2005-11-16 Thread Michael Fuhr
('test1_id_seq'). That expression is used in both inserts, so the sequence gets incremented twice. See the archives for numerous past discussions of this behavior. -- Michael Fuhr ---(end of broadcast)--- TIP 9: In versions be

Re: [BUGS] Double sequence increase on single insert with RULE on targeted table

2005-11-15 Thread Michael Fuhr
on test1: CREATE RULE test1_on_insert AS ON INSERT TO test1 DO INSERT INTO test_log1 (qid) VALUES (new.id); This "gotcha" comes up occasionally; it's due to the fact that rules are macros. Search the archives for past discussion. -- Michael Fuhr

Re: [BUGS] BUG #2037: user function call unexpected "input out of range"

2005-11-12 Thread Michael Fuhr
w.movable-type.co.uk/scripts/GIS-FAQ-5.1.html If you're working with geospatial data then you might want to look at PostGIS. http://postgis.refractions.net/ See also PostgreSQL's contrib/earthdistance module. -- Michael Fuhr ---(end of broadcast)---

Re: [BUGS] BUG #2034: Wrong time zone IST

2005-11-10 Thread Michael Fuhr
gresql.org/pgsql-hackers/2004-10/msg00766.php http://www.postgresql.org/docs/faqs.TODO.html In the first message above, Tom Lane suggests hacking src/backend/utils/adt/datetime.c if you want to fix your own system. -- Michael Fuhr ---(end of broadcast)-

Re: [BUGS] BUG #2001: Signal 11 after concurrent inserts + updates

2005-10-27 Thread Michael Fuhr
d post it here. Use "q" to exit gdb. If Tom Lane gives differing or additional instructions then listen to him, because he's one of the core developers. -- Michael Fuhr ---(end of broadcast)--- TIP 4: Have you searched our list archives? http://archives.postgresql.org

Re: [BUGS] BUG #2001: Signal 11 after concurrent inserts + updates

2005-10-26 Thread Michael Fuhr
third-party modules, etc.? -- Michael Fuhr ---(end of broadcast)--- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailin

Re: [BUGS] BUG #1993: Adding/subtracting negative time intervals

2005-10-24 Thread Michael Fuhr
-07 (1 row) test=> SELECT '2005-10-29 12:00:00-06'::timestamptz + '1 day'::interval; ?column? 2005-10-30 12:00:00-07 (1 row) -- Michael Fuhr ---(end of broadcast)--- TIP 9: In vers

Re: [BUGS] BUG #1993: Adding/subtracting negative time intervals

2005-10-24 Thread Michael Fuhr
iled by GCC gcc (GCC) 3.4.2 now | 2005-10-25 13:35:47.104595+10 ?column? | 2005-11-01 13:35:47.104595+11 ?column? | 2005-11-01 14:35:47.104595+11 -- Michael Fuhr ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [BUGS] BUG #1989: Curious blob problem

2005-10-23 Thread Michael Fuhr
is problem (i can send you these files). A test case would be useful: all SQL statements, data, and other steps that somebody could use to duplicate what you're doing. -- Michael Fuhr ---(end of broadcast)--- TIP 4: Have you

Re: [BUGS] BUG #1971: Start Transaction is giving Errors !!!

2005-10-18 Thread Michael Fuhr
to use dblink to make another connection to the database from within the function and execute transactions over that connection. -- Michael Fuhr ---(end of broadcast)--- TIP 4: Have you searched our list archives? http://archives.postgresql.org

Re: [BUGS] BUG #1956: Plpgsql top-level DECLARE does not share

2005-10-14 Thread Michael Fuhr
ages based on entries in a template table (pg_pltemplate). -- Michael Fuhr ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [BUGS] BUG #1962: ECPG and VARCHAR

2005-10-13 Thread Michael Fuhr
On Thu, Oct 13, 2005 at 09:49:20AM -0600, Michael Fuhr wrote: > ecpg in 8.0.4 seems not to like the macros. I get the same error, > but not if I do this: > > VARCHAR t[256]; > VARCHAR o[256]; > > ecpg in 8.1beta3 works either way. This appears to be the guilty c

Re: [BUGS] BUG #1962: ECPG and VARCHAR

2005-10-13 Thread Michael Fuhr
inter to varchar are not implemented > tenant.ec:376: ERROR: pointer to varchar are not implemented ecpg in 8.0.4 seems not to like the macros. I get the same error, but not if I do this: VARCHAR t[256]; VARCHAR o[256]; ecpg in 8.1beta3 works either way. -- Michael Fuhr -

Re: [BUGS] Problem with COPY in 8.0.3

2005-10-12 Thread Michael Fuhr
d data from your first message; about the only differences from what you're doing are that the table isn't inherited and it uses "COPY foo FROM stdin" instead of reading the data from an external file. If this test works correctly, what happens if you use "COPY FROM stdin&q

Re: [BUGS] Problem with COPY in 8.0.3

2005-10-12 Thread Michael Fuhr
On Wed, Oct 12, 2005 at 08:17:23PM +0100, Oliver Elphick wrote: > On Wed, Oct 12, 2005 at 12:19:41PM -0600, Michael Fuhr wrote: > > Could you post the table definitions? > > Here it is: I created the tables you posted (sans foreign key constraints because you didn't in

Re: [BUGS] Problem with COPY in 8.0.3

2005-10-12 Thread Michael Fuhr
On Wed, Oct 12, 2005 at 08:23:15PM +0100, Oliver Elphick wrote: > On Wed, 2005-10-12 at 12:13 -0600, Michael Fuhr wrote: > > On another note, regarding the following: > > > > > invdate | date | not null default > > > ('now&#x

Re: [BUGS] Problem with COPY in 8.0.3

2005-10-12 Thread Michael Fuhr
On Wed, Oct 12, 2005 at 12:19:41PM -0600, Michael Fuhr wrote: > On Wed, Oct 12, 2005 at 07:08:20PM +0100, Oliver Elphick wrote: > > I should add that the table inherits from another one, but the > > swapped columns are a long way into the extra columns specific to > > this

Re: [BUGS] BUG #1957: Error for createlang

2005-10-12 Thread Michael Fuhr
plpython is listed there ... I don't know about the plperl or pltcl problems, but are you sure "plpython" is in pg_pltemplate? "plpythonu" should be there but not "plpython", at least not in a distribution built from the unmodified source code. -- Michael Fuhr ---

Re: [BUGS] Problem with COPY in 8.0.3

2005-10-12 Thread Michael Fuhr
On Wed, Oct 12, 2005 at 07:08:20PM +0100, Oliver Elphick wrote: > I should add that the table inherits from another one, but the > swapped columns are a long way into the extra columns specific to > this table. Could you post the table definitions? -- Mic

Re: [BUGS] Problem with COPY in 8.0.3

2005-10-12 Thread Michael Fuhr
| not null default ('now'::text)::date Are you sure you want 'now'::text as a default, considering the warning against it? http://www.postgresql.org/docs/8.0/interactive/functions-datetime.html#FUNCTIONS-DATETIME-CURRENT -- Michael Fuhr -

Re: [BUGS] .pgpass does not work for createlang

2005-10-11 Thread Michael Fuhr
PGUSER environment variable instead of using the -U option? You mentioned FC4, so maybe Tom Lane or somebody more familiar with that platform has some ideas about what's happening. -- Michael Fuhr ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [BUGS] .pgpass does not work for createlang

2005-10-11 Thread Michael Fuhr
lp" for more information. Use the --help option or consult the createlang documentation to see the correct order of options and arguments. It works fine here with .pgpass if the syntax is correct; have you run "createlang --version" to verify that you're running the

Re: [BUGS] BUG #1938: pg_dump mis-intreprets "default now()";

2005-10-05 Thread Michael Fuhr
l.org/docs/7.4/interactive/release-7-4.html -- Michael Fuhr ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [BUGS] BUG #1888: bug in cast from float4 to float8

2005-09-17 Thread Michael Fuhr
nations of the problems of using binary floating-point numbers. If you need exact results then use the numeric type. -- Michael Fuhr ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [BUGS] BUG #1862: ECPG Connect, host variable trailing blanks

2005-09-16 Thread Michael Fuhr
insert significant trailing spaces into a VARCHAR column if the client library strips them? -- Michael Fuhr ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [BUGS] BUG #1885: SHOW autovacuum settings tab completion broken

2005-09-16 Thread Michael Fuhr
autovacuum autovacuum_vacuum_cost_delay archive_command autovacuum_analyze_scale_factor autovacuum_vacuum_cost_limit australian_timezones autovacuum_analyze_threshold autovacuum_vacuum_scale_fa

Re: [BUGS] BUG #1871: operations with data types

2005-09-13 Thread Michael Fuhr
On Sun, Sep 11, 2005 at 03:03:57AM -0400, Tom Lane wrote: > Michael Fuhr <[EMAIL PROTECTED]> writes: > > What do other DBMSs do? > > This is a fair question. Given that the SQL committee hasn't provided > any useful leadership, what are other groups doing? I d

Re: [BUGS] BUG #1871: operations with data types

2005-09-10 Thread Michael Fuhr
On Sun, Sep 11, 2005 at 12:43:58AM -0400, Tom Lane wrote: > Michael Fuhr <[EMAIL PROTECTED]> writes: > > Apparently the two intervals don't cancel each other out (i.e., > > they're not optimized to zero), > > Well, no, because + and - associate left-to

Re: [BUGS] BUG #1870: Insertion problem

2005-09-10 Thread Michael Fuhr
ing? Could the data have been inserted and then deleted? Might the inserting transaction have been rolled back? Do you have any triggers that might be silently discarding the insert? -- Michael Fuhr ---(end of broadcast)--- TIP 9: In versions b

Re: [BUGS] BUG #1871: operations with data types

2005-09-10 Thread Michael Fuhr
Y field of the or . and General Rule 6b says If, after the preceding step, any of the result is outside the permissible range of values for the field or the result is invalid based on the natural rules for dates and times, then an exception condition is raised: data exception -- datetime

Re: [BUGS] BUG #1862: ECPG Connect, host variable trailing blanks

2005-09-08 Thread Michael Fuhr
significant. The server makes the decision, not the ECPG preprocessor or library, which simply passes the value to the server. If you think this behavior should be changed then propose it on pgsql-hackers and discuss it with the developers. -- Michael Fuhr ---(end of broadc

Re: [BUGS] BUG #1862: ECPG Connect, host variable trailing blanks

2005-09-07 Thread Michael Fuhr
t behavior, and also doesn't match Oracle's > behavior, we are requesting a fix or an option. Identifiers are NAME types, not CHAR types; the difference in behavior is no more inconsistent than that between VARCHAR and CHAR. If the strings have trailing spaces but the identifiers on

  1   2   3   >