Leaving... (was: Re: [HACKERS] [PATCHES] COPY view)

2006-08-23 Thread Karel Zak
2006 at 11:12:21PM -0400, Tom Lane wrote: > The patch submitter has neither provided an updated patch nor defended > his original submission as being the right thing. If he doesn't take it > seriously enough to have done any followup, why should the rest of us? -- Karel Zak <[EMAIL

Re: [HACKERS] [PATCHES] COPY view

2006-08-23 Thread Karel Zak
On Tue, Aug 22, 2006 at 01:11:22PM -0400, Andrew Dunstan wrote: > There's nothing hidden (unless it's also hidden from me ;-) ) > > I take it that when you talk about "we did this" you are referring to > the patch from Karel Zak. Hans has been original author

Re: [PATCHES] [HACKERS] to_char and i18n

2005-12-26 Thread Karel Zak
all problem that the current to_char() output is possible use as argument for to_timestamp() or to_date() function. It means you should implement vice-versa conversion from string with TMMonth/TMDay to timestamp. to_timestamp('Domingo, 25 Dezembro 2005', 'TMDay, DD TMMonth YYY

Re: [HACKERS] to_char and i18n

2005-12-22 Thread Karel Zak
rd compatibility the locale sensitive to_char() should be implemented as separate call "to_char(datetime, format, locale)" or we should add new modifiers to the current to_char, something like "to_char(datetime, "LCMonth") or both. I don't have any

Re: R: [HACKERS] feature proposal ...

2005-09-22 Thread Karel Zak
ortal stuff. Tom, do you think that there's any other (better) way how we can implement it? Karel -- Karel Zak <[EMAIL PROTECTED]> ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

[HACKERS] 'now' runtime

2005-04-07 Thread Karel Zak
est (cost=0.00..0.00 rows=1 width=0) (actual time=0.004..0.004 rows=0 loops=1) Filter: ((_time)::date = '2005-04-06'::date) Total runtime: 0.065 ms Karel -- Karel Zak <[EMAIL PROTECTED]> ---(end of broadcast)-

Re: [HACKERS] Bug 1500

2005-03-27 Thread Karel Zak
0s', 'MI "min"') -> '70.5 min' BTW, for numbers to_char() disable extraction: test=# select to_char(123.4::float, '.999'); to_char - .### the result is not '.4'. I think important is always tradition how people work with selected datetype. For TIMESTAMP is it common that you work with extraction from full date/time description, but it's unusual for numbers and I think for INTERVALs too. Karel -- Karel Zak <[EMAIL PROTECTED]> ---(end of broadcast)--- TIP 7: don't forget to increase your free space map settings

Re: [HACKERS] Bug 1500

2005-03-27 Thread Karel Zak
On Sun, 2005-03-27 at 12:03 +0200, Karel Zak wrote: > On Sat, 2005-03-26 at 15:56 -0800, Josh Berkus wrote: > > Alvaro, > > > > > On Sat, Mar 26, 2005 at 02:04:14PM -0800, Josh Berkus wrote: > > > > SELECT to_char( INTERVAL '43 hours 20 minutes', 

Re: [HACKERS] Bug 1500

2005-03-27 Thread Karel Zak
lready supported by to_char() format parser. I think to_char(interval) should be support split interval to more items, like: to_char(INTERVAL '1d 3h 65s', 'HHh MIm SSs') ---> '27h 1m 5s' Well, I'm going to check how difficult will be implement correct t

Re: [HACKERS] Bug 1500

2005-03-25 Thread Karel Zak
On Sat, 2005-03-26 at 02:32 +0100, Karel Zak wrote: > On Fri, 2005-03-25 at 20:03 -0500, Tom Lane wrote: > > Steve Crawford <[EMAIL PROTECTED]> writes: > > > In digging around I discovered that it appears a decision was made to > > > remove to_char(interval)

Re: [HACKERS] Bug 1500

2005-03-25 Thread Karel Zak
ent for this functionality. This alarms me. > > Yeah. Karel Zak, who wrote that code, is convinced we should remove it, > but I don't think anyone else is ... I think I was Peter and Josh Berkus who convinced me that the code is bed. "we should remove..." i

Re: [HACKERS] Bug 1500

2005-03-25 Thread Karel Zak
me to the same conclusion a little while ago: > http://archives.postgresql.org/pgsql-hackers/2005-03/msg00908.php > > > Also the general to_char() Interval formatting seems broken anyway. > > Karel Zak has stated repeatedly that interval_to_char is fundamentally > wrong an

Re: [HACKERS] Upcoming 8.0.2 Release

2005-03-25 Thread Karel Zak
On Fri, 2005-03-25 at 14:08 -0500, Tom Lane wrote: > Karel Zak <[EMAIL PROTECTED]> writes: > > On Fri, 2005-03-25 at 03:29 -0500, Tom Lane wrote: > >> I intend to look at that tomorrow. Meanwhile, have you got a fix > >> for bug#1500? > >> http://

Re: [HACKERS] Upcoming 8.0.2 Release

2005-03-25 Thread Karel Zak
On Fri, 2005-03-25 at 03:29 -0500, Tom Lane wrote: > Karel Zak <[EMAIL PROTECTED]> writes: > > http://archives.postgresql.org/pgsql-patches/2005-03/msg00176.php > > I intend to look at that tomorrow. Meanwhile, have you got a fix > for bug#1500? > http://archives.pos

Re: [HACKERS] Upcoming 8.0.2 Release

2005-03-25 Thread Karel Zak
http://archives.postgresql.org/pgsql-patches/2005-03/msg00176.php Add it to 8.0.2 or 8.1? Karel -- Karel Zak <[EMAIL PROTECTED]> ---(end of broadcast)--- TIP 7: don't forget to increase your free space map settings

Re: [HACKERS] invalidating cached plans

2005-03-17 Thread Karel Zak
a complications > (e.g. resource management). It was already implemented as experiment and I think better is keep plans separate. karel -- Karel Zak <[EMAIL PROTECTED]> ---(end of broadcast)--- TIP 6: Have you search

Re: [HACKERS] change palloc to malloc

2005-03-17 Thread Karel Zak
e > malloc has to be freed in the code. Why do you want to make the > switch? Right. And it's definitely faster use palloc() than malloc(). I think the current code is really based on memory contexts and I'm sure that (strange:-) s/palloc/malloc/ is not enough.

Re: [HACKERS] UTF8 or Unicode

2005-02-25 Thread Karel Zak
he > official names vs. the common names. Yes. I said already. For example "WIN" is extremely bad alias. It all is heritage from old versions. > I will work on a patch that people can review and test. Thanks. Karel -- Karel Zak <[EMAIL PROTECTED]> ---

Re: [HACKERS] UTF8 or Unicode

2005-02-18 Thread Karel Zak
On Sat, 2005-02-19 at 00:27 +1300, Oliver Jowett wrote: > Karel Zak wrote: > > > Yes, I think we should fix it and remove UNICODE and WIN encoding names > > from PG code. > > The JDBC driver asks for a UNICODE client encoding before it knows the > server version i

Re: [HACKERS] UTF8 or Unicode

2005-02-18 Thread Karel Zak
On Tue, 2005-02-15 at 14:33 +0100, Peter Eisentraut wrote: > Am Dienstag, 15. Februar 2005 10:22 schrieb Karel Zak: > > in PG: unicode = utf8 = utf-8 > > > > Our internal routines in src/backend/utils/mb/encnames.c accept all > > synonyms. The "official" i

Re: [HACKERS] UTF8 or Unicode

2005-02-15 Thread Karel Zak
in src/backend/utils/mb/encnames.c accept all synonyms. The "official" internal PG name for UTF-8 is "UNICODE" :-( It's historical reason that UTF8 = UNICODE, because there was "UNICODE" first. It's same like "WIN" for WIN1251 (in sources it's

Re: [HACKERS] Inline MemoryContextSwitchTo?

2005-02-07 Thread Karel Zak
> eating a percent or three of most profiles. Sounds good. I think we can inlining all MemoryContext functions which check memory context header and call context->metods->...() only. An example MemoryContextAlloc() that is very often called from code too. Karel

Re: [HACKERS] to_char/to_number loses sign

2004-10-25 Thread Karel Zak
there. The conversion from string to number is less stable part of formatting.c... I have already 2000 lines of code of new generation of to_..() functions. But all will available in 8.1. The patch is in the attachment. Karel -- Karel Zak http://home.zf.jcu.cz/~zakkr --- pgsql/src/backend/u

Re: [HACKERS] tweaking MemSet() performance - 7.4.5

2004-09-29 Thread Karel Zak
then I'd replace the postgres function > with the OS provided function. > > I'd add some __builtin_constant_p() optimizations, but I guess Tom won't > like gcc hacks ;-) I think it cannot be problem if you write it to some .h file (in port directory?) as macro with &qu

Re: [HACKERS] monetary bug

2004-08-23 Thread Karel Zak
On Mon, Aug 23, 2004 at 02:52:44PM +0200, Dennis Bjorklund wrote: > On Mon, 23 Aug 2004, Karel Zak wrote: > > > I think it's pretty extendable solution in contrast to the current > > hardcoded in/out datetypes functions. > > Who are we formatting for? If t

Re: [HACKERS] monetary bug

2004-08-23 Thread Karel Zak
ntrast to the current hardcoded in/out datetypes functions. Comments? Is there any plan for locale-per-column setting syntax? > The idea behind the money type is to format per the lc_monetary locale > setting, which seems perfectly reasonable to me. Further down the road Why &quo

Re: [HACKERS] 8.0 Open Items

2004-08-23 Thread Karel Zak
lltime job for RH next week. Note RH constitute new team of developers in Czech Republic. Maybe I will have again more time for PostgreSQL (or maybe not if they assign me to some other project -- but PostgreSQL is my wish :-) So to_char() familly will again better maintained. Karel

[HACKERS] 8.0 libpq: missing get_home_path()

2004-08-18 Thread Karel Zak
isn't compiled in PostgreSQL client libs, but the get_home_path() is used there. Karel -- Karel Zak <[EMAIL PROTECTED]> http://home.zf.jcu.cz/~zakkr/ ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

Re: [HACKERS] to_char() and negative intervals

2004-08-16 Thread Karel Zak
about it is already in 7.4 docs. Maybe we can remove it in 7.5/8.0. Comments? Karel -- Karel Zak <[EMAIL PROTECTED]> http://home.zf.jcu.cz/~zakkr/ ---(end of broadcast)--- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]

Re: [HACKERS] Assisting developers

2004-07-14 Thread Karel Zak
case all start discussion if something is already done and they try use it. Karel -- Karel Zak <[EMAIL PROTECTED]> http://home.zf.jcu.cz/~zakkr/ ---(end of broadcast)--- TIP 6: Have you searched our list archives? http://archives.postgresql.org

[HACKERS] windows encodings

2004-07-08 Thread Karel Zak
is well-founded idea. I think :-) Karel -- Karel Zak <[EMAIL PROTECTED]> http://home.zf.jcu.cz/~zakkr/ ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

Re: [HACKERS] Slony-I goes BETA

2004-06-04 Thread Karel Zak
?news_id=174 Jan, the link http://postgresql.org/~wieck/slony1/Slony-I-concept.pdf that is used on project pages doesn't work :-( Karel -- Karel Zak <[EMAIL PROTECTED]> http://home.zf.jcu.cz/~zakkr/ ---(end of broadcast)--- TI

Re: [HACKERS] Weird prepared stmt behavior

2004-05-06 Thread Karel Zak
ecause I can detect it by error message and it's too academic problem for me. I don't change DB schema in stable and production server and I think ALTER/DROP/CREATE is nothing often in running and good designed databases. Karel -- Karel Zak <[EMAIL PROTECTED]>

Re: [HACKERS] What can we learn from MySQL?

2004-04-27 Thread Karel Zak
me of MySQL. > > That seems like a good idea. Agree. The page should be describe basic PostgreSQL features and step-by-step introduction from download to a first user's "SELECT ... FROM". Do you expect translate PostgreSQL-win installer to foreign languages? Karel -- Karel Zak <[EMAIL PROTECTED]> http://home.zf.jcu.cz/~zakkr/ ---(end of broadcast)--- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]

Re: [HACKERS] What can we learn from MySQL?

2004-04-23 Thread Karel Zak
on't understand why MySQL developers want to leave their current possition and want to fight with PostgreSQL, Oracle, DB2 .. etc. Karel -- Karel Zak <[EMAIL PROTECTED]> http://home.zf.jcu.cz/~zakkr/ ---(end of broadcast)---

Re: [HACKERS] contrib vs. gborg/pgfoundry for replication solutions

2004-04-21 Thread Karel Zak
ng? The contrib tree is basic selection of interesting small thigs from PostgreSQL world. Karel -- Karel Zak <[EMAIL PROTECTED]> http://home.zf.jcu.cz/~zakkr/ ---(end of broadcast)--- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]

Re: [HACKERS] pg_encoding not needed anymore

2004-04-20 Thread Karel Zak
On Tue, Apr 20, 2004 at 08:59:20AM -0400, Bruce Momjian wrote: > Karel Zak wrote: > > On Mon, Apr 19, 2004 at 08:41:18PM -0400, Bruce Momjian wrote: > > > With initdb written now in C, we don't need a pg_encoding binary > > > anymore. > > > > By the w

Re: [HACKERS] pg_encoding not needed anymore

2004-04-20 Thread Karel Zak
others things in pgsql/src/bin) Karel -- Karel Zak <[EMAIL PROTECTED]> http://home.zf.jcu.cz/~zakkr/ ---(end of broadcast)--- TIP 6: Have you searched our list archives? http://archives.postgresql.org

Re: [HACKERS] union vs. sort

2004-04-08 Thread Karel Zak
On Wed, Apr 07, 2004 at 02:20:55PM -0400, Tom Lane wrote: > > I've committed changes to do the right thing in CVS tip. Thanks man! Karel -- Karel Zak <[EMAIL PROTECTED]> http://home.zf.jcu.cz/~zakkr/ ---(end of broadcast)

Re: [HACKERS] union vs. sort

2004-04-07 Thread Karel Zak
On Tue, Apr 06, 2004 at 10:33:25AM -0400, Tom Lane wrote: > Karel Zak <[EMAIL PROTECTED]> writes: > > I'm surprise with query plan that PostgreSQL planner prepare for > > selects with ORDER BY if all data are from sub-select that is already > > sorted.

[HACKERS] union vs. sort

2004-04-06 Thread Karel Zak
Subquery Scan "*SELECT* 2" -> Seq Scan on addr2 Or order of data which returns "unique" is for UNION diffrent that data from DISTINCT? (see first example). Karel -- Karel Zak <[EMAIL PROTECTED]> http://home.zf.jcu.cz/~zakkr/ ---(end of broadcast)--- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match

Re: [HACKERS] Per database users/admins, handy for database virtual hosting...

2004-03-26 Thread Karel Zak
d nice. You can use "GRANT TO LOCAL foo" rather than connect more commands together. Karel -- Karel Zak <[EMAIL PROTECTED]> http://home.zf.jcu.cz/~zakkr/ ---(end of broadcast)--- TIP 8: explain analyze is your friend

Re: [HACKERS] linked list rewrite

2004-03-24 Thread Karel Zak
and not CPU only. (sorry of this pontification:-) Karel -- Karel Zak <[EMAIL PROTECTED]> http://home.zf.jcu.cz/~zakkr/ ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

Re: [HACKERS] pg_autovacuum next steps

2004-03-22 Thread Karel Zak
to forget about lightly-used tables.) The auto vacuumer could look at the FSM numbers to decide which tables are highest priority to vacuum. (2002-09-03 08:10:32) I looked at the code and I think extend FSM tables will pretty simple, but I unsure how

Re: [HACKERS] COPY formatting

2004-03-21 Thread Karel Zak
On Fri, Mar 19, 2004 at 09:54:37AM -0500, Tom Lane wrote: > Karel Zak <[EMAIL PROTECTED]> writes: > > The problem with CSV is that it will correctly work with new protocol > > only. Because old versions of clients are newline sensitive. > > Why? The client-side

Re: [HACKERS] COPY formatting

2004-03-19 Thread Karel Zak
On Fri, Mar 19, 2004 at 09:39:58AM -0500, Tom Lane wrote: > Karel Zak <[EMAIL PROTECTED]> writes: > >>> It's pity that main idea of current COPY is based on separated lines > >>> and it is not more common interface for streaming data between FE and BE. >

Re: [HACKERS] COPY formatting

2004-03-19 Thread Karel Zak
keep the COPY option syntax to be just > FORMAT csv > is to create an arbitrary difference in the signatures of the input > functions. Then we could have coexisting functions > csv(text[]) returns text > csv(text) returns text[] > csv(text, ...) return

Re: [HACKERS] COPY formatting

2004-03-18 Thread Karel Zak
was right that in this case it will C functions only. As I said I will try implement it without user defined function call for format conversion, but I will do it modular and in future we can create some interface for user defined formats. Karel -- Karel Zak <[EMAI

Re: [HACKERS] COPY formatting

2004-03-18 Thread Karel Zak
On Thu, Mar 18, 2004 at 07:48:40AM +0100, Karel Zak wrote: > On Wed, Mar 17, 2004 at 11:02:38AM -0500, Tom Lane wrote: > > Karel Zak <[EMAIL PROTECTED]> writes: > > > The formatting function API can be pretty simple: > > > text *my_copy_for

Re: [HACKERS] COPY formatting

2004-03-17 Thread Karel Zak
On Wed, Mar 17, 2004 at 11:02:38AM -0500, Tom Lane wrote: > Karel Zak <[EMAIL PROTECTED]> writes: > > The formatting function API can be pretty simple: > > text *my_copy_format(text *attrdata, int direction, > > int nattrs, int attr, oid attrtype, oid rel

[HACKERS] COPY formatting

2004-03-17 Thread Karel Zak
The formatting function API can be pretty simple: text *my_copy_format(text *attrdata, int direction, int nattrs, int attr, oid attrtype, oid relation) -- it's pseudocode of course, it should be use standard fmgr interface. It's probably interesting for

Re: [HACKERS] ORDER BY different locales

2004-02-27 Thread Karel Zak
On Thu, Feb 26, 2004 at 09:16:03AM -0500, Tom Lane wrote: > Karel Zak <[EMAIL PROTECTED]> writes: > > I think possible solution is special function used ORDER BY clause > > which knows to switch by safe way to wanted locales, convert string by > > strxfrm()

[HACKERS] ORDER BY different locales

2004-02-26 Thread Karel Zak
ale */ if (!setlocale(LC_COLLATE, lc_collate_cache)) elog(ERROR, "invalid LC_COLLATE setting: %s", lc_collate_cache); PG_RETURN_TEXT_P(txt_out); } -- Karel Zak <[EMAIL PROTECTED]> http://home.zf.jcu.cz/~zakkr/ ---(end of broadcast)--- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faqs/FAQ.html

Re: [HACKERS] ORDER BY different locales

2004-02-26 Thread Karel Zak
On Thu, Feb 26, 2004 at 09:16:03AM -0500, Tom Lane wrote: > Karel Zak <[EMAIL PROTECTED]> writes: > > I think possible solution is special function used ORDER BY clause > > which knows to switch by safe way to wanted locales, convert string by > > strxfrm()

Re: [HACKERS] msg translation into sk_SK, Docs: SGML -> XML

2004-02-02 Thread Karel Zak
I claim the format is > docbook. Yes, it's simular "jade" way that we use for SGML now. The "fop" advantage is direct conversion without huge TeX stuff. Karel -- Karel Zak <[EMAIL PROTECTED]> http://home.zf.jcu.cz/~zakkr/ Informatio

Re: [HACKERS] msg translation into sk_SK, Docs: SGML -> XML

2004-01-30 Thread Karel Zak
l good about it. The important thing is support in Makefiles XML conversion to other formats like HTML, PDF and man. It's strange if after release almost nobody has idea how create PDF docs. > almost equivalent. I've also tried out the po2xml thingy and it seems > to work, b

Re: [HACKERS] msg translation into sk_SK, Docs: SGML -> XML

2004-01-29 Thread Karel Zak
testxml" stuff in the doc/src/sgml/Makefile. I tested it and it works -- but for example conversion from XML to PDF by "fop" failed, but it's might be fop problem. Peter, what's your planns? Karel -- Karel Zak <[EMAIL PROTECTED]> http://home

Re: [HACKERS] time format

2004-01-05 Thread Karel Zak
(end of broadcast)--- > > TIP 8: explain analyze is your friend > > > > ---(end of broadcast)------- > TIP 9: the planner will ignore your desire to choose an index scan if your > joining column's datatypes do not match -- Ka

Re: [HACKERS] cache in plpgsql

2004-01-05 Thread Karel Zak
current RI solution that save plans in own hash table. I think we can add support for work with query cache to SPI and use it in more places (RI, PL, etc.), something like SPI_saveplan_bykey(). Karel -- Karel Zak <[EMAIL PROTECTED]> http://home.zf.jcu.cz/~zakkr/ ---

Re: [HACKERS] Dates BC.

2003-12-19 Thread Karel Zak
'0001-01-01 BC'::date, '/MM/DD AD'); to_char --- /01/01 AD # SELECT EXTRACT(YEAR from '0001-01-01 BC'::date); date_part --- 0 Karel -- Karel Zak <[EMAIL PROTECTED]> http://home.zf.jcu.cz/~zak

Re: [HACKERS] Dates BC.

2003-12-19 Thread Karel Zak
DD BC'); to_date 0020-01-10 test=# select to_char('0020-01-10 BC'::date, '-MM-DD AD'); to_char --- 0020-01-10 BC Karel -- Karel Zak <[EMAIL PROTECTED]> http://home.zf.jcu.cz/~zakkr/ ---(end of broadcast)--- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faqs/FAQ.html

Re: [HACKERS] PL/SQL packages

2003-11-28 Thread Karel Zak
On Fri, Nov 28, 2003 at 02:35:11PM +0100, Peter Eisentraut wrote: > Karel Zak writes: > > > in our TODO is the item: "Add PL/PgSQL packages". > > I think the interesting part are the package-global variables. The > name hierarchy seems completely redundant with

[HACKERS] PL/SQL packages

2003-11-28 Thread Karel Zak
een the schemas and possible package contents referencing: SELECT xyz.funcname(); ^^^ Is it some function in schema 'xyz' or some function in package 'xyz' in the current schema? Or is needful check both alternatives? Do you have any experience with it? K

Re: [HACKERS] timestamp convert function

2003-11-27 Thread Karel Zak
('23:20:30', 'HH24:MI:SS.US')::time; > to_timestamp > - > 23:20:30.123459 > (1 row) I think it's fixed in 7.4. Karel -- Karel Zak <[EMAIL PROTECTED]> http://home.zf.jcu.cz/~zakkr/ ---(end of broadca

Re: [HACKERS] XML Docbook

2003-11-14 Thread Karel Zak
if in the PostgreSQL docs is something special what disable use XML instead SGML. > Follow-up to [EMAIL PROTECTED] please. Hmm.. I must subscribe first :-) Karel -- Karel Zak <[EMAIL PROTECTED]> http://home.zf.jcu.cz/~zakkr/ --

Re: [HACKERS] XML Docbook

2003-11-14 Thread Karel Zak
On Fri, Nov 14, 2003 at 09:57:16AM +0100, Jean-Michel POURE wrote: > Le Vendredi 14 Novembre 2003 09:26, Karel Zak a écrit : > > What use pure XML Docbook (non-SGML) for 7.5 PostgreSQL docs? > > Dear Karel, > > For information, how do you plan to translate XML Docbook form

[HACKERS] XML Docbook

2003-11-14 Thread Karel Zak
.pdf ps: fop -xsl /path/to/stylesheet/xsl/fo/docbook.xsl -xml book.xml -ps book.ps html: xsltproc -o htmldir/ /path/to/stylesheet/html/chunk.xsl book.xml man: xsltproc /path/to/stylesheet/manpages/docbook.xsl ref.xml Comments? Karel -- Karel Zak <[EMAIL PROT

Re: [HACKERS] UPPER()/LOWER() and UTF-8

2003-11-05 Thread Karel Zak
7.5, but at present you are going to need to use a > single-byte encoding within the server. (Nothing to stop you from using > UTF-8 on the client side though.) You can use mutibyte on server side too, but you must to use for example convert() function for upper/lower argument

Re: [HACKERS] Unicode upper() bug still present

2003-10-21 Thread Karel Zak
haracter set.) Why cannot do PostgreSQL as 100% pure Unicode system? We can do conversion from/to others encodings as client/server communication extension, but internaly in BE we can use only pure Unicode data. I think a lot of things will more simple... Karel --

Re: [HACKERS] PREPARE/EXECUTE across backends?

2003-10-02 Thread Karel Zak
; > for difference backends. > > The decision to store prepared statements per-backend, rather than in > shared memory, was made deliberately. In fact, an early version of the > PREPARE/EXECUTE patch (written by Karel Zak) stored prepared statements > in shared memory. But I decided to

Re: [HACKERS] lower and upper not UTF-8 safe

2003-08-05 Thread Karel Zak
ferences between OS. The best it's if libc support nl_langinfo(CODESET) call. The complete code of charset detection you can found in libcharset or glib (I use simplification of these codes and it's 300 lines:-). Karel -- Karel Zak <[EMAIL PROTECTED]&

Re: [HACKERS] [PATCHES] Czech NLS

2003-07-23 Thread Karel Zak
On Wed, Jul 23, 2003 at 12:42:36PM +0200, Peter Eisentraut wrote: > Karel Zak writes: > > > Thanks. What time will "freeze" backend messages? I think after beta > > release. > > Typically (meaning in other large projects that care about these things), > a

Re: [HACKERS] CVS: compilation failed

2003-07-22 Thread Karel Zak
On Tue, Jul 22, 2003 at 10:31:36AM -0400, Tom Lane wrote: > Karel Zak <[EMAIL PROTECTED]> writes: > > ./configure --prefix=/usr/lib/postgresql --enable-nls > > I think you must have done --enable-recode too. Oops.. you're right :-) Karel -- Karel Zak

[HACKERS] CVS: compilation failed

2003-07-22 Thread Karel Zak
miscinit.o] Error 1 It's problem with: MyProcPort->raddr.in.sin_addr.s_addr ^^ Karel -- Karel Zak <[EMAIL PROTECTED]> http://home.zf.jcu.cz/~zakkr/ ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

Re: [HACKERS] NLS: czech

2003-07-14 Thread Karel Zak
On Mon, Jul 14, 2003 at 10:37:24AM -0400, Tom Lane wrote: > Karel Zak <[EMAIL PROTECTED]> writes: > > I start translate rest of all non-translated PostgreSQL's LC_MESSAGES > > from http://developer.postgresql.org/~petere/nls.php. > > Please, if someone other wi

[HACKERS] NLS: czech

2003-07-14 Thread Karel Zak
Hi, I start translate rest of all non-translated PostgreSQL's LC_MESSAGES from http://developer.postgresql.org/~petere/nls.php. Please, if someone other will do this work connect me first. I want to prevent duplicated work... Karel -- Karel Zak <[EMAIL PROTECTED

Re: [HACKERS] TO_CHAR SO SLOW???

2003-06-24 Thread Karel Zak
slow?? I don't think to_char() is so slow. What happen with performance if you use t.dt without formatting or if try some other function an example extract()? SELECT t.x, t.y, t.dt FROM ( SELECT x, y, dt FROM ) AS t; SELECT t.x, t.y, EXTRACT(year from t.dt) FROM ( SELECT x,

Re: [HACKERS] Automatic detection of client encoding

2003-05-29 Thread Karel Zak
deset = buf; } } #endif if (codeset == NULL) /* The canonical name cannot be determined. */ codeset = ""; else codeset = mp_charset_aliases (codeset); /* Don't return an empty string. GNU libc and GNU libiconv interpret * the empty string as denoting "the locale's character encoding", * thus GNU libiconv would call this function a second time. */ if (codeset[0] == '\0') { /* * Last possibility is 'CHARSET' enviroment variable */ if (!(codeset = getenv ("CHARSET"))) codeset = "ASCII"; } if (charset) *charset = (char *) codeset; if (strcasecmp(codeset, "UTF8")==0 || strcasecmp(codeset, "UTF-8")==0) return TRUE; return FALSE; } autoconf part: - AC_DEFUN(jm_LANGINFO_CODESET, [ AC_CHECK_HEADERS(langinfo.h) AC_CHECK_FUNCS(nl_langinfo) AC_CACHE_CHECK([for nl_langinfo and CODESET], jm_cv_langinfo_codeset, [AC_TRY_LINK([#include ], [char* cs = nl_langinfo(CODESET);], jm_cv_langinfo_codeset=yes, jm_cv_langinfo_codeset=no) ]) if test $jm_cv_langinfo_codeset = yes; then AC_DEFINE(HAVE_LANGINFO_CODESET, 1, [Define if you have and nl_langinfo(CODESET).]) fi ]) -- Karel Zak <[EMAIL PROTECTED]> http://home.zf.jcu.cz/~zakkr/ ---(end of broadcast)--- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]

Re: [HACKERS] to_char(interval) --- done?

2003-03-24 Thread Karel Zak
e if SQL standard knows something like this and write something for "interval" only is not good idea (IMHO) if there is a lot of code which already know formatting data to string. Karel -- Karel Zak <[EMAIL PROTECTED]> http://home.zf.jcu.cz/~zakk

Re: [HACKERS] to_char(interval) --- done?

2003-03-24 Thread Karel Zak
O list, though; does > that mean it's already been fixed in 7.4? No. There was short discussion about it last week. Karel -- Karel Zak <[EMAIL PROTECTED]> http://home.zf.jcu.cz/~zakkr/ ---(end of broadcast)--- TIP 1: subscr

[HACKERS] actual cvs: compile error

2003-03-20 Thread Karel Zak
]: Leaving directory `/var/home/PG_DEVEL/pgsql/src/bin/psql' make[2]: *** [all] Error 2 The "cancelConn" has defined to the file common.c as static and in the common.h as extern. Karel -- Karel Zak <[EMAIL PROTECTED]> http://home.zf.jcu.cz/~zakkr/ -

Re: [HACKERS] 7.4 Wishlist

2002-12-03 Thread Karel Zak
On Mon, Dec 02, 2002 at 12:48:38PM -0800, Christopher Kings-Lynne wrote: > But if there is, then the sum/count(*) is nonsensical anyway. You must to use it in SERIALIZABLE transaction isolation. Karel -- Karel Zak <[EMAIL PROTECTED]> http://home.zf.jcu.

Re: [HACKERS] [GENERAL] One SQL to access two databases.

2002-12-03 Thread Karel Zak
On Mon, Dec 02, 2002 at 08:56:41AM -0800, Joe Conway wrote: > Karel Zak wrote: > >On Sat, Nov 30, 2002 at 01:11:20PM -0800, Joe Conway wrote: > > > >>As I said, this is all very preliminary; comments, suggestions, requests > >>are all welcome. > > > &

Re: [HACKERS] 7.4 Wishlist

2002-12-02 Thread Karel Zak
s. It's very interesting that nobody other wants it... Karel -- Karel Zak <[EMAIL PROTECTED]> http://home.zf.jcu.cz/~zakkr/ ---(end of broadcast)--- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]

Re: [HACKERS] [GENERAL] One SQL to access two databases.

2002-12-02 Thread Karel Zak
ns ...; SELECT * FROM myschema.tabname; This solution allows use dblink as really transparent. Karel -- Karel Zak <[EMAIL PROTECTED]> http://home.zf.jcu.cz/~zakkr/ ---(end of broadcast)--- TIP 3: if posting/reading through

Re: [HACKERS] protocol change in 7.4

2002-11-05 Thread Karel Zak
s is PostgreSQL useless in real DB aplication (9) Think about full dynamic charset encoding (add new encoding on the fly) Karel -- Karel Zak <[EMAIL PROTECTED]> http://home.zf.jcu.cz/~zakkr/ C, PostgreSQL, PHP, WWW, http://docs.linux.cz, http://mape.jcu.cz

Re: [HACKERS] OO future

2002-10-30 Thread Karel Zak
;" > > The methods will probably have problems with syntax clashes with > existing stuff. Hmm, p.pay.tax() ? Karel -- Karel Zak <[EMAIL PROTECTED]> http://home.zf.jcu.cz/~zakkr/ C, PostgreSQL, PHP, WWW, http://docs.linux.cz, http://mape.jcu.cz --

[HACKERS] OO future

2002-10-30 Thread Karel Zak
, age int ); Comments? I nothinig found about OO in the current TODO. BTW, my examples are only small part of possible OO features, the others ideas are for example define PRIVATE/PUBLIC attributes in composite types and methods, "SELECT p.name FROM person p WHERE p.pay->tax

Re: [HACKERS] idle connection timeout ...

2002-10-28 Thread Karel Zak
;t want to maintain my databases by SET command. > profname > session_per_user > cpu_per_session > cpu_per_call > connect_time > idle_time > logical_reads_per_session > logical_reads_per_call ... and a lot of others things in future. Karel -- Karel Zak <[EMAIL

Re: [HACKERS] PREPARE / EXECUTE

2002-10-23 Thread Karel Zak
but worse. Right. There's solution: persisten backend (for example like classic apache). This solve problem with lifetime of all persistent caches. It's already in TODO. Karel -- Karel Zak <[EMAIL PROTECTED]> http://home.zf.jcu.cz/~zakkr/ C, Postgre

Re: [HACKERS] Memory leaks

2002-10-22 Thread Karel Zak
(BTW backend is multithread:-). IMHO use memory-context design for FE is good idea if FE a lot works with memory. I already long time think about shared lib with PostgreSQL mmgr... Karel -- Karel Zak <[EMAIL PROTECTED]> http://home.zf.jcu.cz/~zakkr/ C, PostgreSQL, PHP, WWW, http

Re: [HACKERS] index theory

2002-10-16 Thread Karel Zak
On Wed, Oct 16, 2002 at 09:25:37AM -0400, Rod Taylor wrote: > On Wed, 2002-10-16 at 09:19, Karel Zak wrote: > > > > Hi, > > > > I have SQL query: > > > > SELECT * FROM ii WHERE i1='a' AND i2='b'; > > > > There're

[HACKERS] index theory

2002-10-16 Thread Karel Zak
i1 on ii a (cost=0.00..52.00 rows=1000 width=24) -> Index Scan using i2 on ii b (cost=0.00..52.00 rows=1000 width=24) Thanks, Karel -- Karel Zak <[EMAIL PROTECTED]> http://home.zf.jcu.cz/~zakkr/ C, PostgreSQL, PHP, WWW, http://docs.linux.cz, http://mape.jcu.cz -

Re: [HACKERS] Postgresql likes Tuesday...

2002-10-01 Thread Karel Zak
test=# select to_char('30-SEP-02'::date, 'WW IW Day D'); to_char --- 39 40 Monday2 SVRMGR> select to_char(to_date('29-SEP-02'), 'WW IW Day D') from dual; TO_CHAR(TO_DATE('

Re: [HACKERS] Postgresql likes Tuesday...

2002-09-30 Thread Karel Zak
ate('402002', 'IWYYYY'); to_date 2002-09-30 (1 row) test=# select to_date('012002', 'WW'); to_date 2002-01-01 (1 row) test=# select to_date('012002', 'IW'); to_date 2001-12-31 (1 row) Karel -- Karel Zak <[EMAIL PROTECTED]> http://home.zf.jcu.cz/~zakkr/ C, PostgreSQL, PHP, WWW, http://docs.linux.cz, http://mape.jcu.cz ---(end of broadcast)--- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]

Re: [HACKERS] [PATCHES] to_char(FM9.9) bug fix

2002-09-22 Thread Karel Zak
On Fri, Sep 20, 2002 at 09:24:00PM +0200, Peter Eisentraut wrote: > Karel Zak writes: > > > test=# select to_char(0,'FM9.9'); > > to_char > > - > > 0. > > (1 row) > > > > test=# select to_char(1,'FM9.9'); > >

Re: [HACKERS] regression test failure in CVS HEAD

2002-09-22 Thread Karel Zak
t; ! + > > ! | 456. > > ! | 4567890123456789. > > ! | 123. > > ! | 4567890123456789. > > ! | -4567890123456789. The results like this are right. Karel --

Re: [HACKERS] unaccent

2002-09-18 Thread Karel Zak
SQL and to_ascii() in main tree. Comment? Karel -- Karel Zak <[EMAIL PROTECTED]> http://home.zf.jcu.cz/~zakkr/ C, PostgreSQL, PHP, WWW, http://docs.linux.cz, http://mape.jcu.cz ---(end of broadcast)--- TIP 6: Have you searched our list archives? http://archives.postgresql.org

[HACKERS] failed Assert() in utf8_and_iso8859_1.c

2002-09-12 Thread Karel Zak
In the server log file is: TRAP: FailedAssertion("!(len > 0)", File: "utf8_and_iso8859_1.c", Line: 45) If I use INSERT instead COPY it's OK. Karel -- Karel Zak <[EMAIL PROTECTED]> http://home.zf.jcu.cz/~zakkr/ C, PostgreSQL, PHP, WWW, http://docs.linux.c

Re: [HACKERS] PREPARE code notes

2002-09-10 Thread Karel Zak
On Mon, Sep 09, 2002 at 11:51:08AM -0400, Tom Lane wrote: > Karel Zak <[EMAIL PROTECTED]> writes: > > 1/ ExecuteQuery() (line 110). Why is needful use copyObject()? The > > PostgreSQL executor modify query planns? > > Yes, and yes. Unfortunately. Hmm, it'

  1   2   3   >