Re: Maximum length of a query

From: Jan Wieck <JanWieck(at)Yahoo(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Matthew V(dot)" <deusmech(at)yahoo(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Maximum length of a query
Date: 2003-02-11 15:45:53
Message-ID: 3E491AB1.2D4153BC@Yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane wrote:
>
> "Matthew V." <deusmech(at)yahoo(dot)com> writes:
> > What is the maximum length of a query nowadays? Back in 1998, it was 8192
> > bytes,
>
> That was a long time ago ;-). There has been no hard-wired upper limit
> for several releases now.
>
> [ It's rather amusing to watch MySQL's crashme test trying to discover
> our maximum query length. At least on my machine, the Perl process
> running crashme hits the kernel's per-process memory limit and dies,
> while the backend it's talking to is still comfortably under the limit.
> I wonder whether MySQL regards that as a test failure ... ]

Well, it's our fault anyway. You cannot have a hardcoded limit in one
release and then, all of the sudden, out of nowhere go unlimited ... one
can claim that we crash crashme on purpose! OTOH, isn't that what the
name asks for?

I have to apologize at this point ... I did the same with TOAST ...
going unlimited without fair warning. Fortunately crashme never tested
for a maximum content length ;-)

Jan

--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================================== JanWieck(at)Yahoo(dot)com #

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Viacheslav N Tararin 2003-02-11 16:17:05 Re: Rights for view.
Previous Message Tom Lane 2003-02-11 15:35:54 Re: starting out