Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c4b2b29

Browse filesBrowse 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
Copy full SHA for c4b2b29

File tree

Expand file treeCollapse file tree

1 file changed

+2
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-3
lines changed

‎src/backend/catalog/system_views.sql

Copy file name to clipboardExpand all lines: src/backend/catalog/system_views.sql
+2-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.