Re: [SQL] behavior of ' = NULL' vs. MySQL vs. Standards

2001-06-08 Thread Tom Lane
it? If Access' forms interface is so badly broken that few people use it anyway, then I'd say that we should not break standards compatibility just to support it. regards, tom lane ---(end of broadcast)--- TIP 1: subscribe

Re: [SQL] PG/DBI: 'NOTICE: UserAbortTransactionBlock and not in in-progress state'

2000-05-26 Thread Tom Lane
ature that sends out COMMITs for you. If you have that turned on, *and* you are explicitly committing, then that's probably the cause of the extra commits. Get rid of one or the other. regards, tom lane

Re: [SQL] aliases break my query

2000-05-26 Thread Tom Lane
plications for. At one time Bruce had made some patches to emit informative notice messages about implicit FROM entries, but that got turned off again for reasons that I forget... regards, tom lane

Re: [SQL] 7.0 weirdness

2000-05-30 Thread Tom Lane
failed to notice that it was giving you undefined results. regards, tom lane

Re: [SQL] Pg/PLSQL Errors!!

2000-05-30 Thread Tom Lane
l into your database? It's not installed by default ... regards, tom lane

Re: [SQL] Default timestamp value

2000-06-05 Thread Tom Lane
is* covered in the FAQ, see http://www.postgresql.org/docs/faq-english.html#4.22 regards, tom lane

Re: [SQL] cron job INSERT appears to bail.

2000-06-05 Thread Tom Lane
he process quit, or just hang up waiting for something? Is there anything reported in the postmaster log? (You might try firing up the psql run with environment variable PGOPTIONS = "-d2" to cause individual queries to be logged.) regards, tom lane

Re: [SQL] question on diagnostics

2000-06-13 Thread Tom Lane
Bruce Momjian [EMAIL PROTECTED] writes: I can confirm this is still a bug. Yeah, it's a parser problem. I punted it in Lockhart's direction, but he's been out of town... regards, tom lane oh, btw this select refused to use an SQL natural join among the 3 relations

Re: [SQL] the day after...

2000-06-19 Thread Tom Lane
Tulassay Zsolt [EMAIL PROTECTED] writes: FATAL 1: cannot create init file pg_internal.init Hmm, disk full? Wrong ownership or permissions on database directory (data/base/tek)? Looks like that error report needs to include the kernel error message... regards, tom

Re: [SQL] BETWEEN

2000-06-20 Thread Tom Lane
regards, tom lane

Re: [SQL] Type conversion

2000-06-20 Thread Tom Lane
the explicit conversion: regression=# create function int2(int8) returns int2 as regression-# 'begin return int2(int4($1)); end;' language 'plpgsql'; CREATE regression=# insert into t2 (select b from t1 where a = 1); INSERT 314649 1 regards, tom lane

Re: [SQL] Using substr with user defined types

2000-06-23 Thread Tom Lane
*) palloc(16)) != NULL) strcpy(result, password-password); return (result); } That doesn't return "text", so you can't tell the system it does. Type text is a varlena type, ie, length word followed by data. regards, tom lane

Re: [SQL] Orderby two different columns

2000-06-23 Thread Tom Lane
two dates is probably what you need to do. I don't think we have a two-input MAX function like that, but it'd be easy enough to fake it with a CASE expression. Something like ... ORDER BY (CASE WHEN a b THEN a ELSE b END) DESC; regards, tom lane

Re: [SQL] More full text index..

2000-06-24 Thread Tom Lane
et whether they are kernel I/O requests or logical I/O requests, ie which side of the buffer cache they are counted on. regards, tom lane

Re: [SQL] A subselect in an aggregate

2000-06-26 Thread Tom Lane
expression requires its very own parentheses, so you need two sets: sum((select )) But the other way is probably better... regards, tom lane

Re: [SQL] Backup?

2000-06-27 Thread Tom Lane
-nothing proposition. regards, tom lane

Re: [SQL] Problem with pg_dumpall

2000-06-27 Thread Tom Lane
the backend, PQendcopy() failed. Explanation from backend: 'FATAL 1: Memory exhausted in AllocSetAlloc() '. The query was: 'COPY "medusa" WITH OIDS TO stdout; Hmm. What is the full definition of that table? (pg_dump -s -t medusa would do.) regards, tom lane

Re: [SQL] Problem with pg_dumpall

2000-06-27 Thread Tom Lane
Ryan Bradetich [EMAIL PROTECTED] writes: Tom Lane wrote: Ryan Bradetich [EMAIL PROTECTED] writes: -- dumping out the contents of Table 'medusa' FATAL 1: Memory exhausted in AllocSetAlloc() PQendcopy: resetting connection SQL query to dump the contents of Table 'medusa' did not execute

Re: [SQL] Hash Join not using hashed index?

2000-06-28 Thread Tom Lane
if there is a restriction clause matching the index. In your example you have only a join WHERE clause. Plain btree indexes on city.country_id and country.country_id might work better --- at least they'd offer the option of a merge join without doing explicit sort. regards, tom lane

Re: [SQL] Hash Join not using hashed index?

2000-06-28 Thread Tom Lane
e evidence that another plan type would be quicker for this problem? regards, tom lane

Re: [SQL] Procedures cannot take more than 16 arguments

2000-06-28 Thread Tom Lane
the oldstyle cases beyond 8 are likely to be dead code anyhow ... not much point in cluttering the backend with more cases.) I think I need to change the config.h comment that goes with MAX_FUNC_ARGS. regards, tom lane

Re: [SQL] Finding the names of inheriting classes

2000-06-28 Thread Tom Lane
Thomas Swan [EMAIL PROTECTED] writes: I'm at a loss on how identify or get the names of children of a parent class. Join pg_class against pg_inherits. regards, tom lane

Re: [SQL] Hash Join not using hashed index?

2000-06-28 Thread Tom Lane
of the actual runtimes. regards, tom lane

Re: [SQL] some strings from errlog

2000-06-30 Thread Tom Lane
it happen? regards, tom lane

Re: [SQL] Query about using arrays (for accessing pg_group)

2000-07-02 Thread Tom Lane
, tom lane

Re: Antw: [SQL] plpgsql function gets wierd with Null parameters

2000-07-03 Thread Tom Lane
plpgsql's fault, but that of the function-call interface. The problem appears no matter what programming language you write the function in. regards, tom lane

Re: Antw: [SQL] LEFT JOIN

2000-07-04 Thread Tom Lane
, or 7.1 if we get lucky. regards, tom lane

Re: [SQL] ERROR: ExecEvalAggref: no aggregates in this expression context

2000-07-05 Thread Tom Lane
, tom lane

Re: [SQL] ERROR: ExecEvalAggref: no aggregates in this expressioncontext

2000-07-05 Thread Tom Lane
be done about it. I'd recommend avoiding views that use those features for now. regards, tom lane

Re: [SQL] Search for underscore w/ LIKE

2000-07-07 Thread Tom Lane
need the backslash trick.) regards, tom lane

Re: [SQL] Search for underscore w/ LIKE

2000-07-07 Thread Tom Lane
need to match a literal backslash in a LIKE pattern, how many backslashes do you have to write in your query? regards, tom lane

Re: [SQL] Timestamp indexes

2000-07-21 Thread Tom Lane
g at a lot more data to be fetched by the scan, not just 10 records, so the indexscan becomes less attractive. Might be interesting to compare the estimated and actual runtimes between this query and what you get with "set enable_seqscan to off;" regards, tom lane

Re: [SQL] create function - user permissions

2000-07-22 Thread Tom Lane
s then you *are* giving him Postgres superuser rights. He can do anything he damn well pleases as user postgres, he's just got to write some code to do it. Once you've absorbed that, giving him the dbadmin password should not look unreasonable. regards, tom lane

[SQL] Re: [BUGS] problem with view and case - please help

2000-07-21 Thread Tom Lane
to go about it. I'd think about making a table containing a pattern column and a browser-name column and doing the view as a join. Might be a little tricky to ensure you get only one match, however ... regards, tom lane

Re: [SQL] pg_dump

2000-07-25 Thread Tom Lane
s no error message of that spelling in 7.0 pg_dump, but there is in 6.5 ... Check your PATH, or invoke pg_dump using a full path instead of letting it default. regards, tom lane

Re: [SQL] Conditional rule?

2000-07-28 Thread Tom Lane
tate, "NEW" is planned new row state DELETE: "OLD" holds row to be deleted regards, tom lane

Re: [SQL] Indices and time spans

2000-07-31 Thread Tom Lane
d function marked "iscachable" (for details see the archives for the last time this question came up, a few months back). But the lowest-tech solution may be to calculate the cutoff time on the application side, so you can just send it as a constant to begin with. regards, tom lane

Re: [SQL] What's ETA for read/write Views?

2000-07-31 Thread Tom Lane
of a view is that it's not an exact image of the underlying data, so how is a machine going to figure out what you want an update on the view to do? regards, tom lane

Re: [SQL] A question about indexes...

2000-08-03 Thread Tom Lane
... regards, tom lane

Re: [SQL] Rules aren't doing what I expect

2000-08-11 Thread Tom Lane
fied value. I'd suggest folding the log-entry-making into your trigger, actually. If you have a trigger anyway then the insert into t1_log is only one more line in that trigger procedure... regards, tom lane

Re: [SQL] non-cachable 'C' language functions

2000-08-11 Thread Tom Lane
:-(. Thus, for example, select * from foo where random() 0.5 doesn't work as desired. I plan to fix this for 7.1. Offhand I don't see a use for a nextval-like function in WHERE, so you're probably safe with both 6.5 and 7.0. regards, tom lane

Re: [SQL] Speed or configuration

2000-08-20 Thread Tom Lane
INCT might help if so.) regards, tom lane

Re: [SQL] Copying data with triggers

2000-08-21 Thread Tom Lane
apps that do it all the time. I suspect maybe the plpgsql parser gets confused by SQL-style comments? Your example seems to work fine if I leave out the comment. regards, tom lane

Re: [SQL] Continuous inserts...

2000-08-22 Thread Tom Lane
before. Perhaps 7.0.* is broken in this respect? Would think people would have noticed, though. regards, tom lane

Re: [SQL] Null function parameters

2000-08-23 Thread Tom Lane
it to be or not. This has been gone over *many* times before on this mail list, so I didn't think I needed to repeat it. This will be fixed in 7.1 (is already fixed in current sources). regards, tom lane

Re: [SQL] Using SETOF in plpgsql function

2000-08-23 Thread Tom Lane
limitation so far has been bogus assumptions in the function-call API, not querytrees. regards, tom lane

Re: [SQL] Create table in functions

2000-08-23 Thread Tom Lane
an SQL function instead of plpgsql, if that helps any... regards, tom lane

Re: [SQL] Create table in functions

2000-08-23 Thread Tom Lane
's caching of query plans (and specifically the table OIDs stored in those plans) or is there another issue here? We do need to think about invalidating cached query plans when updates happen... regards, tom lane

Re: [SQL] Regular expression query

2000-08-24 Thread Tom Lane
SIX 1003.2 regexps (see src/backend/regex/re_format.7). I believe there is an item on the TODO list about upgrading the regexp parser to something more modern ... feel free to hop on that project if it's bugging you ... regards, tom lane

Re: [SQL] Re: Date of creation and of change

2000-08-25 Thread Tom Lane
of how to define a column default that gives the time of insertion. You need to write this as NEW.ChangedAt := now(); to prevent the system from reducing timestamp('now') to a constant when the function is first executed. regards, tom lane

Re: [SQL] shared memory leak in 7.0.2?

2000-08-28 Thread Tom Lane
on a regular basis that doesn't seem like it'd be the issue. Anyway, keep an eye on things with ipcs and we'll see what's going on... regards, tom lane

Re: [SQL] pg_attribute_relid_attnam_index problem after log disk filled up

2000-08-28 Thread Tom Lane
. regards, tom lane

Re: [SQL] How do you detect row version changes in PostgreSQL?

2000-08-29 Thread Tom Lane
keep track of multiple changes intra-transaction). It might not be defined quite the way you want, but if you're not picky about what a "version number" is, it'll do. regards, tom lane

Re: [SQL] performance on insert/update

2000-08-29 Thread Tom Lane
. Hopefully by 7.2 there will be a better way to do the view. regards, tom lane

Re: [SQL] Problems with complex queries ...

2000-08-29 Thread Tom Lane
d)" and I get this result: ERROR: rewrite: comparision of 2 aggregate columns not supported I think this is fixed in 7.0. regards, tom lane

Re: [SQL] Optimizing huge inserts/copy's

2000-08-30 Thread Tom Lane
inserting? I've recently been swatting some performance problems in the btree index code for the case of large numbers of equal keys. regards, tom lane

Re: [SQL] Order by in stored functions

2000-09-04 Thread Tom Lane
column is mistakenly counting the hidden IdSort column that's needed to sort by. I don't know of any good workaround in 7.0, short of patching the erroneous code. Have you thought about using a view, rather than a function returning set? regards, tom lane

Re: [SQL] Operator Precedence problem?

2000-08-12 Thread Tom Lane
ULL except for requiring a boolean input, AFAICT). regards, tom lane

Re: [SQL] Creating an aggregate function

2000-09-09 Thread Tom Lane
want that. regards, tom lane

[SQL] Re: [BUGS] ORDER BY issue - is this a bug?

2000-09-10 Thread Tom Lane
to punctuation. That's pretty bizarre (not to say difficult to believe). What LOCALE setting are you running the postmaster in? regards, tom lane

Re: [SQL] Porting from mysql to psql (UNIX_TIMESTAMP()?)

2000-09-09 Thread Tom Lane
: regression=# select 968518585 :: int4 :: abstime :: timestamp; ?column? 2000-09-09 12:56:25-04 (1 row) (there's probably a cleaner way to do this, but that works ...) regards, tom lane

Re: [SQL] Optimizing Multiply Joins ???

2000-09-14 Thread Tom Lane
und JOIN expressions... regards, tom lane

Re: [SQL] Optimizing Multiply Joins ???

2000-09-14 Thread Tom Lane
Meszaros Attila [EMAIL PROTECTED] writes: Can I test this feature in the current snapshot? Sure. But see my message to pghackers on Tuesday for notes about what's not working yet in the JOIN support. regards, tom lane

Re: [SQL] installing pgaccess

2000-09-15 Thread Tom Lane
Keith Wong [EMAIL PROTECTED] writes: Anybody know how to compile pgaccess from postgres source files? I think it's driven by configure --with-tcl. regards, tom lane

Re: [SQL] Repeatable reads

2000-09-19 Thread Tom Lane
"Michael Richards" [EMAIL PROTECTED] writes: It appears that postgres 7.0 does not support repeatable read for transaction isolation. Is this planned? If so, when? ?? Maybe you need to do SET TRANSACTION ISOLATION LEVEL? regards, tom lane

Re: [SQL] ERROR: replace_vars_with_subplan_refs (!?)

2000-09-20 Thread Tom Lane
table declarations, so I can try the example without a lot of guessing? regards, tom lane

Re: [SQL] ERROR: replace_vars_with_subplan_refs (!?)

2000-09-20 Thread Tom Lane
Louis-David Mitterrand [EMAIL PROTECTED] writes: On Wed, Sep 20, 2000 at 10:43:59AM -0400, Tom Lane wrote: Louis-David Mitterrand [EMAIL PROTECTED] writes: How should I interpret that error? ERROR: replace_vars_with_subplan_refs: variable not in subplan target list Looks like a bug to me

Re: [SQL] missing day(s) in interval (was: Convert from Seconds-Since-Epoch to Timestamp)

2000-09-23 Thread Tom Lane
like a bug to me ... Thomas, do you agree? Curiously, it appears that the interval input converter will accept this with or without the 'days' keyword included. regards, tom lane

[SQL] Re: [HACKERS] RFC - change of behaviour of pg_get_userbyid pg_get_viewdef?

2000-09-24 Thread Tom Lane
instead of 'Not a view' when there is no view by the given name, but I do not agree with trying to suppress errors due to metadata problems. regards, tom lane

Re: [SQL] Subqueries in from clause?

2000-09-25 Thread Tom Lane
Meszaros Attila [EMAIL PROTECTED] writes: How far is the above subject from beeing implemented? I'm looking at it right now ... no promises yet, though. regards, tom lane

Re: [SQL] Q: spinlock on Alpha? (PG7.0.2)

2000-10-02 Thread Tom Lane
maybe egcs is misoptimizing around the inline assembly code of tas() ? regards, tom lane

Re: [SQL] Something I'd like to try...

2000-10-02 Thread Tom Lane
. It'd just be another way to trip yourself up when moving across DBMSes. regards, tom lane

Re: [SQL] Something I'd like to try...

2000-10-03 Thread Tom Lane
); ? regards, tom lane

Re: [SQL] OID Perfomance - Object-Relational databases

2000-10-03 Thread Tom Lane
OIDs). 2. counter overflow problems hit you only per-table, not per-installation. regards, tom lane

Re: [SQL] OID Perfomance - Object-Relational databases

2000-10-03 Thread Tom Lane
over just as many tables as you need to have unique IDs across. That way you don't have a problem at dump/reload time, and you don't exhaust your ID space any faster than you must. regards, tom lane

Re: [SQL] OID Perfomance - Object-Relational databases

2000-10-03 Thread Tom Lane
active table, per-table sequence values look like a better bet. BTW, there *is* talk of providing an 8-byte-OID option, but I'm not holding my breath for it. regards, tom lane

Re: [SQL] Q: performance on some selects (7.0.2)?

2000-10-04 Thread Tom Lane
article.id and articles_groups.groupid, also. You seem to have indexes on all the wrong columns of articles :-( ... each of those indexes costs you on updates, but will it ever be useful in a query? regards, tom lane

Re: [SQL] Typecast a user-defined type?

2000-10-04 Thread Tom Lane
In general any type coercion can be provided this way --- a function of a single argument, having the same name as its return type, represents a coercion path. regards, tom lane

Re: [SQL] Object syntax

2000-10-05 Thread Tom Lane
f term that can mean different things to different people... regards, tom lane

Re: [SQL] Granting of permissions on tables

2000-10-05 Thread Tom Lane
don't need superuser help to do this, you just have to do GRANT ALL ON table TO yourself as the table owner. But it's stupid to have to do that when it's supposed to be the default condition. Fixed for 7.1. regards, tom lane

[SQL] Re: [HACKERS] Counting bool flags in a complex query

2000-10-05 Thread Tom Lane
... regards, tom lane

Re: [SQL] Granting of permissions on tables

2000-10-06 Thread Tom Lane
ly got any permissions granted to himself; ie, changing permissions is not a grantable/revokable right, it's just checked on the basis of who you are. regards, tom lane

Re: [SQL] Re: [HACKERS] Counting bool flags in a complex query

2000-10-06 Thread Tom Lane
a snapshot installation is probably a waste of time.) regards, tom lane

Re: [SQL] Variable-length Types

2000-10-15 Thread Tom Lane
or might not have a sensible default behavior for types it doesn't recognize. regards, tom lane

Re: [SQL] problem with select where like ']'

2000-10-17 Thread Tom Lane
. regards, tom lane

Re: [SQL] problem with select where like ']'

2000-10-17 Thread Tom Lane
... regards, tom lane

Re: [SQL] substr

2000-10-19 Thread Tom Lane
SQL around here, not Perl, so we have to follow the SQL spec's definition of substr(). regards, tom lane

Re: [SQL] knowing which columns have beend UPDATEd inside a TRIGGER?

2000-10-24 Thread Tom Lane
, but they're all there. For an UPDATE, you could check to see whether old.col = new.col. This would miss the case where an UPDATE command is explicitly setting a column to the same value it already had; dunno if you care or not. regards, tom lane

Re: [SQL] Surprising sequence scan when function call used

2000-10-25 Thread Tom Lane
e works OK in current sources, but until 7.1 comes out you'll need to write something like where login.login = lower('foo')::char; Or change the login field to type text... regards, tom lane

[SQL] Re: [HACKERS] Conditional query plans.

2000-10-19 Thread Tom Lane
rk a lot better when there are large numbers of rows involved. It might actually happen for 7.2... regards, tom lane

Re: [SQL] HELP! ... pg_locale ???

2000-10-27 Thread Tom Lane
pitting up on a stray \r. Dunno what your admin did to make the problem appear where you hadn't had it before... regards, tom lane

Re: [SQL] except on nulls?

2000-10-27 Thread Tom Lane
cast There are no comparison operators for array types ... regards, tom lane

Re: [SQL] except on nulls?

2000-10-28 Thread Tom Lane
cast There are no comparison operators for array types ... regards, tom lane

Re: Re(2): Re(2): [SQL] Large Object dump ?

2000-11-02 Thread Tom Lane
ransaction :-(. So it chokes when you access more than 1000 LOs in the same transaction. Dunno about your other issue, but clearly your application is failing to report whatever error message was returned when the transaction was aborted... regards, tom lane

Re: [SQL] Subqueries in from clause

2000-11-03 Thread Tom Lane
Pierre Habraken [EMAIL PROTECTED] writes: It looks like if subqueries in from clause are not supported by PostgreSQL. Am I right ? If yes, are there any plans to provide this feature soon ? Already there in current sources for 7.1 ... regards, tom lane

Re: [SQL] UNION in views

2000-11-06 Thread Tom Lane
Roberto Mello [EMAIL PROTECTED] writes: I was wondering if UNIONs in VIEWS will be supported too. Already there for 7.1. regards, tom lane

Re: [SQL] how to index a numeric(12,2) column?

2000-11-08 Thread Tom Lane
undesirable hidden side effects. Yes, and they won't be too hidden either: it won't work :-( Current sources check for that sort of type mismatch, but 6.5 failed to do so. regards, tom lane

Re: [SQL] shared memory problem

2000-11-08 Thread Tom Lane
r System V IPC semaphore configuration. Form more information Most likely your kernel isn't set to allow shared memory blocks as large as 8M. regards, tom lane

Re: [SQL] alter table add column implementation undesirable?

2000-11-09 Thread Tom Lane
column is added to the children too, as it should be, but in an unexpected column position, which causes trouble for pg_dump (a dump and reload will do the wrong thing). Perhaps what you heard is a garbled report of that issue. regards, tom lane

Re: [SQL] Re: [GENERAL] Problem with coalesce..

2000-11-02 Thread Tom Lane
type 501" AFAICT it works in 7.0.* as well. Are you sure this was 7.0.2, and not 6.5.something? regards, tom lane

  1   2   3   4   5   6   7   8   9   10   >