Skip to content

Commit c4b2b29

Browse files
committed
Fix ts_debug function to prevent unneeded calls of ts_lexize().
It will be mush better to reimplement ts_debug in C (instead of SQL as now), but it's planned for the future.
1 parent 57cafe7 commit c4b2b29

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/backend/catalog/system_views.sql

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright (c) 1996-2007, PostgreSQL Global Development Group
55
*
6-
* $PostgreSQL: pgsql/src/backend/catalog/system_views.sql,v 1.43 2007/09/11 03:28:05 tgl Exp $
6+
* $PostgreSQL: pgsql/src/backend/catalog/system_views.sql,v 1.44 2007/09/11 08:51:22 teodor Exp $
77
*/
88

99
CREATE VIEW pg_roles AS
@@ -415,8 +415,7 @@ SELECT
415415
( SELECT mapdict, pg_catalog.ts_lexize(mapdict, parse.token) AS lex
416416
FROM pg_catalog.pg_ts_config_map AS m
417417
WHERE m.mapcfg = $1 AND m.maptokentype = parse.tokid
418-
ORDER BY m.mapseqno ) dl
419-
WHERE dl.lex IS NOT NULL
418+
ORDER BY pg_catalog.ts_lexize(mapdict, parse.token) IS NULL, m.mapseqno ) dl
420419
LIMIT 1
421420
) AS "Lexized token"
422421
FROM pg_catalog.ts_parse(

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy