Forum OpenACS Q&A: new to acs, need help with xowiki toc

I am brand new to openacs and XOWiki. I am trying to use xowiki to generate a table of contents tree automatically. I have looked around for tutorials to no avail. The tutorial at this page:
http://www.openacs.org/xowiki/XoWiki_User_Guide
looks to cover what I am trying to do, but the images are gone so it's not much help.

I am really lost here and don't know what to do. Are there any other online resources that might be able to help me? Is this the best forum for XOwiki help or should I be posting elsewhere?

I have tired two approaches. The first is the insertion of this into a xowiki page:
{{toc -open_page de:imac -style folder}}
I am not sure what the parameters actually do(for instance, what does the de:imac mean?).

When inserting that code I get this error:
----------------------------------------------------------
Error in includelet 'toc' Database operation "select" failed (exception NSDB, "Query was not a statement returning rows.")

ERROR: column "page_order" does not exist
LINE 1: select page_id, page_order, name, title from xowiki_page_l...
^

SQL: select page_id, page_order, name, title from xowiki_page_live_revision p where parent_id = 19390 and not page_order is NULL

----------------------------------------------------------

I assume that this is because I have not made the proper installation to the db. How do I install the PostgreSQL module ltree on a windows system? Is that what I need?

I have also tried to change the parameter for the template_file from "view-default" to "view-book". However when doing so, I get this long error:

----------------------------------------------------------
can't read "navigation(count)": no such element in array
::xotcl::__#0u9 ::xotcl::Object->set
invoked from within
"my set navigation(count)"
(procedure "count" line 2)
::xotcl::__#0u9 ::xowiki::portlet::toc->count
invoked from within
"$i count"
invoked from within
"if {$i ne "" && ![$page exists __is_book_page]} {
set p [$i position]
set count [$i count]
if {$count == 0} {set count 1}
set book_relpos [for..."
("uplevel" body line 7)
invoked from within
"uplevel {
set title [[$package_id folder_id] title]
#ns_log notice "--including_page= $__including_page, portlet=$portlet"
set toc [$page include_port..."
(procedure "code::tcl::/var/lib/aolserver/dodss/packages/xowiki/www/view..." line 2)
invoked from within
"code::tcl::$__adp_stub"
invoked from within
"if { [file exists $__adp_stub.tcl] } {

# ensure that data source preparation procedure exists and is up-to-date
adp_init tcl $__adp_stub
..."
("uplevel" body line 3)
invoked from within
"uplevel {

if { [file exists $__adp_stub.tcl] } {

# ensure that data source preparation procedure exists and is up-to-date
adp_init t..."
(procedure "adp_prepare" line 2)
invoked from within
"adp_prepare "
(procedure "template::adp_parse" line 30)
invoked from within
"template::adp_parse [template::util::url_to_file $src] $varlist"
(procedure "template::adp_include" line 8)
invoked from within
"template::adp_include $adp $__vars"
(procedure "return_page" line 29)
::19369 ::xowiki::Package->return_page
invoked from within
"$package_id return_page -adp $template_file -variables {
references name title item_id page context header_stuff return_url
conten..."
(procedure "view" line 201)
::19394 ::xowiki::Page->view
invoked from within
"$object $method"
(procedure "call" line 7)
::19369 ::xowiki::Package->call
invoked from within
"my call $page $method"
(procedure "invoke" line 8)
::19369 ::xowiki::Package->invoke
invoked from within
"::$package_id invoke -method $m"
invoked from within
"::$package_id reply_to_user [::$package_id invoke -method $m]"
(file "/var/lib/aolserver/dodss/packages/xowiki/www/index.vuh" line 21)
invoked from within
"source [ad_conn file]"
(procedure "rp_handle_tcl_request" line 3)
invoked from within
"$handler"
("uplevel" body line 2)
invoked from within
"uplevel $code"
invoked from within
"ad_try {
$handler
} ad_script_abort val {
# do nothing
}"
invoked from within
"rp_serve_concrete_file [ad_conn file]"
(procedure "rp_serve_abstract_file" line 60)
invoked from within
"rp_serve_abstract_file "$root/$path""
("uplevel" body line 2)
invoked from within
"uplevel $code"
invoked from within
"ad_try {
rp_serve_abstract_file "$root/$path"
set tcl_url2file([ad_conn url]) [ad_conn file]
set tcl_url2path_info..."

----------------------------------------------------------

Collapse
Posted by Nima Mazloumi on
This indicates that ltree is not installed. This depends on how you have installed PostgreSQL. This is an extension for PostgreSQL. Look for a contrib directory or search for ltree and run the corresponding SQL file for you database. This should fix the problem.
Collapse
Posted by Matthew Smith on
Thank you, I will give it a try.
Collapse
Posted by Nima Mazloumi on
try something like this:

psql yourdb < /.../postgresql/contrib/ltree.sql

Collapse
Posted by Matthew Smith on
Ok, I know I am asking basic questions, so sorry.

Right now I only have web access to the server. How would I actually run that command? I am not really familiar with Postgre( i usually work with sql server).

Is there any way to run that command through the web interface, or do I need another way?

Thank you.

Collapse
Posted by Nima Mazloumi on
There is no simple answer to that. If you have acs-developer-support installed, there is a developer support tool bar that provides a link to the tcl shell (/ds/shell). You need to be site wide admin to access this area.

Also the user that is used from the aolserver to connect to the database requires to have the right priveleges. Then you could, in case you know where the ltree sql is located execute that from the shell using

exec psql < ....

You could try to search for the ltree file from the shell using exec as well. With exec you can execute linux/unix commands from within tcl so you could try

exec locate ltree.sql

if findutils is installed or

exec find / -name 'ltree.sql'

But to be honest I would recommend contacting the system admin for help.

Collapse
Posted by Matthew Smith on
Thank you for all the information. You are really being a big help.

We do have the developer toolbar on here, so I will try it that way.

Thanks again.

Cheers,
Matthew

Collapse
Posted by Nima Mazloumi on
I forgot to mention that this will only work if postgres is installed on the same box.
Collapse
Posted by Matthew Smith on
I am having trouble resolving the pth to use to run the script. Here are the results of "exec locate ltree.sql":
-------------------------------------------------------------
/usr/local/src/postgresql-7.4.6/contrib/ltree/ltree.sql.in
/usr/local/src/postgresql-7.4.6/contrib/ltree/sql/ltree.sql
/usr/local/src/postgresql-8.2.1/contrib/ltree/ltree.sql.in
/usr/local/src/postgresql-8.2.1/contrib/ltree/uninstall_ltree.sql
/usr/local/src/postgresql-8.2.1/contrib/ltree/sql/ltree.sql
/usr/local/src/postgresql-8.2.1-pre-upgrade/contrib/ltree/ltree.sql.in
/usr/local/src/postgresql-8.2.1-pre-upgrade/contrib/ltree/uninstall_ltree.sql
/usr/local/src/postgresql-8.2.1-pre-upgrade/contrib/ltree/sql/ltree.sql
-------------------------------------------------------------

I assume I want to run this one:
/usr/local/src/postgresql-8.2.1/contrib/ltree/sql/ltree.sql

I have tired the following but just get and error:
exec psql &lt;/usr/local/src/postgresql-8.2.1/contrib/ltree/sql/ltree.sql&gt;
exec psql&lt;ltree.sql&gt;
exec psql&lt;./usr/local/src/postgresql-8.2.1/contrib/ltree/sql/ltree.sql&gt;

I am not really sure of the directory structure I am accessing so don't know how to resolve it.

Thank you.

Collapse
Posted by Nima Mazloumi on
I guess is that this is the correct file:
/usr/local/src/postgresql-8.2.1/contrib/ltree/sql/ltree.sql

Try to locate the directory of psql and call it using the full path. Also make sure you have a space character around the smaller than character ' < '.

Collapse
Posted by Nima Mazloumi on
the correct call must look like this:
exec /pathto/psql < /usr/local/src/postgresql-8.2.1/contrib/ltree/sql/ltree.sql
Collapse
Posted by Matthew Smith on
I think I got it to run by using this cvommand:
exec psql &gt; /usr/local/src/postgresql-8.2.1/contrib/ltree/sql/ltree.sql

However, this was the generated output:
------------------------------------------------------------
ERROR:
SELECT ''::ltree;
SELECT '1'::ltree;
SELECT '1.2'::ltree;
SELECT '1.2._3'::ltree;
SELECT ltree2text('1.2.3.34.sdf');
SELECT text2ltree('1.2.3.34.sdf');
SELECT subltree('Top.Child1.Child2',1,2);
SELECT subpath('Top.Child1.Child2',1,2);
SELECT subpath('Top.Child1.Child2',-1,1);
SELECT subpath('Top.Child1.Child2',0,-2);
SELECT subpath('Top.Child1.Child2',0,-1);
SELECT subpath('Top.Child1.Child2',0,0);
SELECT subpath('Top.Child1.Child2',1,0);
SELECT subpath('Top.Child1.Child2',0);
SELECT subpath('Top.Child1.Child2',1);
SELECT index('1.2.3.4.5.6','1.2');
SELECT index('a.1.2.3.4.5.6','1.2');
SELECT index('a.1.2.3.4.5.6','1.2.3');
SELECT index('a.1.2.3.4.5.6','1.2.3.j');
SELECT index('a.1.2.3.4.5.6','1.2.3.j.4.5.5.5.5.5.5');
SELECT index('a.1.2.3.4.5.6','1.2.3');
SELECT index('a.1.2.3.4.5.6','6');
SELECT index('a.1.2.3.4.5.6','6.1');
SELECT index('a.1.2.3.4.5.6','5.6');
SELECT index('0.1.2.3.5.4.5.6','5.6');
SELECT index('0.1.2.3.5.4.5.6.8.5.6.8','5.6',3);
SELECT index('0.1.2.3.5.4.5.6.8.5.6.8','5.6',6);
SELECT index('0.1.2.3.5.4.5.6.8.5.6.8','5.6',7);
SELECT index('0.1.2.3.5.4.5.6.8.5.6.8','5.6',-7);
SELECT index('0.1.2.3.5.4.5.6.8.5.6.8','5.6',-4);
SELECT index('0.1.2.3.5.4.5.6.8.5.6.8','5.6',-3);
SELECT index('0.1.2.3.5.4.5.6.8.5.6.8','5.6',-2);
SELECT index('0.1.2.3.5.4.5.6.8.5.6.8','5.6',-20000);
SELECT 'Top.Child1.Child2'::ltree || 'Child3'::text;
SELECT 'Top.Child1.Child2'::ltree || 'Child3'::ltree;
SELECT 'Top_0'::ltree || 'Top.Child1.Child2'::ltree;
SELECT 'Top.Child1.Child2'::ltree || ''::ltree;
SELECT ''::ltree || 'Top.Child1.Child2'::ltree;
SELECT lca('{la.2.3,1.2.3.4.5.6,""}') IS NULL;
SELECT lca('{la.2.3,1.2.3.4.5.6}') IS NULL;
SELECT lca('{1.la.2.3,1.2.3.4.5.6}');
SELECT lca('{1.2.3,1.2.3.4.5.6}');
SELECT lca('1.la.2.3','1.2.3.4.5.6');
SELECT lca('1.2.3','1.2.3.4.5.6');
SELECT lca('1.2.2.3','1.2.3.4.5.6');
SELECT lca('1.2.2.3','1.2.3.4.5.6','');
SELECT lca('1.2.2.3','1.2.3.4.5.6','2');
SELECT lca('1.2.2.3','1.2.3.4.5.6','1');
SELECT '1'::lquery;
SELECT '4|3|2'::lquery;
SELECT '1.2'::lquery;
SELECT '1.4|3|2'::lquery;
SELECT '1.0'::lquery;
SELECT '4|3|2.0'::lquery;
SELECT '1.2.0'::lquery;
SELECT '1.4|3|2.0'::lquery;
SELECT '1.*'::lquery;
SELECT '4|3|2.*'::lquery;
SELECT '1.2.*'::lquery;
SELECT '1.4|3|2.*'::lquery;
SELECT '*.1.*'::lquery;
SELECT '*.4|3|2.*'::lquery;
SELECT '*.1.2.*'::lquery;
SELECT '*.1.4|3|2.*'::lquery;
SELECT '1.*.4|3|2'::lquery;
SELECT '1.*.4|3|2.0'::lquery;
SELECT '1.*.4|3|2.*{1,4}'::lquery;
SELECT '1.*.4|3|2.*{,4}'::lquery;
SELECT '1.*.4|3|2.*{1,}'::lquery;
SELECT '1.*.4|3|2.*{1}'::lquery;
SELECT 'mailto:qwerty%@*.tu';::lquery;
SELECT nlevel('1.2.3.4');
SELECT '1.2'::ltree < '2.2'::ltree;
SELECT '1.2'::ltree <= '2.2'::ltree;
SELECT '2.2'::ltree = '2.2'::ltree;
SELECT '3.2'::ltree >= '2.2'::ltree;
SELECT '3.2'::ltree > '2.2'::ltree;
SELECT '1.2.3'::ltree @> '1.2.3.4'::ltree;
SELECT '1.2.3.4'::ltree @> '1.2.3.4'::ltree;
SELECT '1.2.3.4.5'::ltree @> '1.2.3.4'::ltree;
SELECT '1.3.3'::ltree @> '1.2.3.4'::ltree;
SELECT 'a.b.c.d.e'::ltree ~ 'a.b.c.d.e';
SELECT 'a.b.c.d.e'::ltree ~ 'A.b.c.d.e';
SELECT 'a.b.c.d.e'::ltree ~ 'A@.b.c.d.e';
SELECT 'aa.b.c.d.e'::ltree ~ 'A@.b.c.d.e';
SELECT 'aa.b.c.d.e'::ltree ~ 'A*.b.c.d.e';
SELECT 'aa.b.c.d.e'::ltree ~ 'A*@.b.c.d.e';
SELECT 'aa.b.c.d.e'::ltree ~ 'mailto:A*@|g.b.c.d.e';;
SELECT 'g.b.c.d.e'::ltree ~ 'mailto:A*@|g.b.c.d.e';;
SELECT 'a.b.c.d.e'::ltree ~ 'a.b.c.d.e';
SELECT 'a.b.c.d.e'::ltree ~ 'a.*.e';
SELECT 'a.b.c.d.e'::ltree ~ 'a.*{3}.e';
SELECT 'a.b.c.d.e'::ltree ~ 'a.*{2}.e';
SELECT 'a.b.c.d.e'::ltree ~ 'a.*{4}.e';
SELECT 'a.b.c.d.e'::ltree ~ 'a.*{,4}.e';
SELECT 'a.b.c.d.e'::ltree ~ 'a.*{2,}.e';
SELECT 'a.b.c.d.e'::ltree ~ 'a.*{2,4}.e';
SELECT 'a.b.c.d.e'::ltree ~ 'a.*{2,3}.e';
SELECT 'a.b.c.d.e'::ltree ~ 'a.*{2,3}';
SELECT 'a.b.c.d.e'::ltree ~ 'a.*{2,4}';
SELECT 'a.b.c.d.e'::ltree ~ 'a.*{2,5}';
SELECT 'a.b.c.d.e'::ltree ~ '*{2,3}.e';
SELECT 'a.b.c.d.e'::ltree ~ '*{2,4}.e';
SELECT 'a.b.c.d.e'::ltree ~ '*{2,5}.e';
SELECT 'a.b.c.d.e'::ltree ~ '*.e';
SELECT 'a.b.c.d.e'::ltree ~ '*.e.*';
SELECT 'a.b.c.d.e'::ltree ~ '*.d.*';
SELECT 'a.b.c.d.e'::ltree ~ '*.a.*.d.*';
SELECT 'a.b.c.d.e'::ltree ~ '*.!d.*';
SELECT 'a.b.c.d.e'::ltree ~ '*.!d';
SELECT 'a.b.c.d.e'::ltree ~ '!d.*';
SELECT 'a.b.c.d.e'::ltree ~ '!a.*';
SELECT 'a.b.c.d.e'::ltree ~ '*.!e';
SELECT 'a.b.c.d.e'::ltree ~ '*.!e.*';
SELECT 'a.b.c.d.e'::ltree ~ 'a.*.!e';
SELECT 'a.b.c.d.e'::ltree ~ 'a.*.!d';
SELECT 'a.b.c.d.e'::ltree ~ 'a.*.!d.*';
SELECT 'a.b.c.d.e'::ltree ~ 'a.*.!f.*';
SELECT 'a.b.c.d.e'::ltree ~ '*.a.*.!f.*';
SELECT 'a.b.c.d.e'::ltree ~ '*.a.*.!d.*';
SELECT 'a.b.c.d.e'::ltree ~ '*.a.!d.*';
SELECT 'a.b.c.d.e'::ltree ~ '*.a.!d';
SELECT 'a.b.c.d.e'::ltree ~ 'a.!d.*';
SELECT 'a.b.c.d.e'::ltree ~ '*.a.*.!d.*';
SELECT 'a.b.c.d.e'::ltree ~ '*.!b.*';
SELECT 'a.b.c.d.e'::ltree ~ '*.!b.c.*';
SELECT 'a.b.c.d.e'::ltree ~ '*.!b.*.c.*';
SELECT 'a.b.c.d.e'::ltree ~ '!b.*.c.*';
SELECT 'a.b.c.d.e'::ltree ~ '!b.b.*';
SELECT 'a.b.c.d.e'::ltree ~ '!b.*.e';
SELECT 'a.b.c.d.e'::ltree ~ '!b.!c.*.e';
SELECT 'a.b.c.d.e'::ltree ~ '!b.*.!c.*.e';
SELECT 'a.b.c.d.e'::ltree ~ '*{2}.!b.*.!c.*.e';
SELECT 'a.b.c.d.e'::ltree ~ '*{1}.!b.*.!c.*.e';
SELECT 'a.b.c.d.e'::ltree ~ '*{1}.!b.*{1}.!c.*.e';
SELECT 'a.b.c.d.e'::ltree ~ 'a.!b.*{1}.!c.*.e';
SELECT 'a.b.c.d.e'::ltree ~ '!b.*{1}.!c.*.e';
SELECT 'a.b.c.d.e'::ltree ~ '*.!b.*{1}.!c.*.e';
SELECT 'a.b.c.d.e'::ltree ~ '*.!b.*.!c.*.e';
SELECT 'a.b.c.d.e'::ltree ~ '!b.!c.*';
SELECT 'a.b.c.d.e'::ltree ~ '!b.*.!c.*';
SELECT 'a.b.c.d.e'::ltree ~ '*{2}.!b.*.!c.*';
SELECT 'a.b.c.d.e'::ltree ~ '*{1}.!b.*.!c.*';
SELECT 'a.b.c.d.e'::ltree ~ '*{1}.!b.*{1}.!c.*';
SELECT 'a.b.c.d.e'::ltree ~ 'a.!b.*{1}.!c.*';
SELECT 'a.b.c.d.e'::ltree ~ '!b.*{1}.!c.*';
SELECT 'a.b.c.d.e'::ltree ~ '*.!b.*{1}.!c.*';
SELECT 'a.b.c.d.e'::ltree ~ '*.!b.*.!c.*';
SELECT 'QWER_TY'::ltree ~ 'q%@*';
SELECT 'QWER_TY'::ltree ~ 'Q_t%@*';
SELECT 'QWER_GY'::ltree ~ 'q_t%@*';
--ltxtquery
SELECT '!tree & aWdf@*'::ltxtquery;
SELECT 'tree & aw_qw%*'::ltxtquery;
SELECT 'ltree.awdfg'::ltree @ '!tree & aWdf@*'::ltxtquery;
SELECT 'tree.awdfg'::ltree @ '!tree & aWdf@*'::ltxtquery;
SELECT 'tree.awdfg'::ltree @ '!tree | aWdf@*'::ltxtquery;
SELECT 'tree.awdfg'::ltree @ 'tree | aWdf@*'::ltxtquery;
SELECT 'tree.awdfg'::ltree @ 'tree & aWdf@*'::ltxtquery;
SELECT 'tree.awdfg'::ltree @ 'tree & aWdf@'::ltxtquery;
SELECT 'tree.awdfg'::ltree @ 'tree & aWdf*'::ltxtquery;
SELECT 'tree.awdfg'::ltree @ 'tree & aWdf'::ltxtquery;
SELECT 'tree.awdfg'::ltree @ 'tree & awdf*'::ltxtquery;
SELECT 'tree.awdfg'::ltree @ 'tree & aWdfg@'::ltxtquery;
SELECT 'tree.awdfg_qwerty'::ltree @ 'tree & aw_qw%*'::ltxtquery;
SELECT 'tree.awdfg_qwerty'::ltree @ 'tree & aw_rw%*'::ltxtquery;
--arrays
SELECT '{1.2.3}'::ltree[] @> '1.2.3.4';
SELECT '{1.2.3.4}'::ltree[] @> '1.2.3.4';
SELECT '{1.2.3.4.5}'::ltree[] @> '1.2.3.4';
SELECT '{1.3.3}'::ltree[] @> '1.2.3.4';
SELECT '{5.67.8, 1.2.3}'::ltree[] @> '1.2.3.4';
SELECT '{5.67.8, 1.2.3.4}'::ltree[] @> '1.2.3.4';
SELECT '{5.67.8, 1.2.3.4.5}'::ltree[] @> '1.2.3.4';
SELECT '{5.67.8, 1.3.3}'::ltree[] @> '1.2.3.4';
SELECT '{1.2.3, 7.12.asd}'::ltree[] @> '1.2.3.4';
SELECT '{1.2.3.4, 7.12.asd}'::ltree[] @> '1.2.3.4';
SELECT '{1.2.3.4.5, 7.12.asd}'::ltree[] @> '1.2.3.4';
SELECT '{1.3.3, 7.12.asd}'::ltree[] @> '1.2.3.4';
SELECT '{ltree.asd, tree.awdfg}'::ltree[] @ 'tree & aWdfg@'::ltxtquery;
SELECT '{j.k.l.m, g.b.c.d.e}'::ltree[] ~ 'mailto:A*@|g.b.c.d.e';;
SELECT 'a.b.c.d.e'::ltree ? '{A.b.c.d.e}';
SELECT 'a.b.c.d.e'::ltree ? '{a.b.c.d.e}';
SELECT 'a.b.c.d.e'::ltree ? '{A.b.c.d.e, a.*}';
SELECT '{a.b.c.d.e,B.df}'::ltree[] ? '{A.b.c.d.e}';
SELECT '{a.b.c.d.e,B.df}'::ltree[] ? '{A.b.c.d.e,*.df}';
--exractors
SELECT ('{3456,1.2.3.34}'::ltree[] ?@> '1.2.3.4') is null;
SELECT '{3456,1.2.3}'::ltree[] ?@> '1.2.3.4';
SELECT '{3456,1.2.3.4}'::ltree[] ?<@ '1.2.3';
SELECT ('{3456,1.2.3.4}'::ltree[] ?<@ '1.2.5') is null;
SELECT '{ltree.asd, tree.awdfg}'::ltree[] ?@ 'tree & aWdfg@'::ltxtquery;
SELECT '{j.k.l.m, g.b.c.d.e}'::ltree[] ?~ 'mailto:A*@|g.b.c.d.e';;
CREATE TABLE ltreetest (t ltree);
\copy ltreetest FROM 'data/ltree.data'
SELECT * FROM ltreetest WHERE t < '12.3' order by t asc;
SELECT * FROM ltreetest WHERE t <= '12.3' order by t asc;
SELECT * FROM ltreetest WHERE t = '12.3' order by t asc;
SELECT * FROM ltreetest WHERE t >= '12.3' order by t asc;
SELECT * FROM ltreetest WHERE t > '12.3' order by t asc;
SELECT * FROM ltreetest WHERE t @> '1.1.1' order by t asc;
SELECT * FROM ltreetest WHERE t <@ '1.1.1' order by t asc;
SELECT * FROM ltreetest WHERE t @ '23 & 1' order by t asc;
SELECT * FROM ltreetest WHERE t ~ '1.1.1.*' order by t asc;
SELECT * FROM ltreetest WHERE t ~ '*.1' order by t asc;
SELECT * FROM ltreetest WHERE t ~ '23.*{1}.1' order by t asc;
SELECT * FROM ltreetest WHERE t ~ '23.*.1' order by t asc;
SELECT * FROM ltreetest WHERE t ~ '23.*.2' order by t asc;
SELECT * FROM ltreetest WHERE t ? '{23.*.1,23.*.2}' order by t asc;
create unique index tstidx on ltreetest (t);
set enable_seqscan=off;
SET
SELECT * FROM ltreetest WHERE t < '12.3' order by t asc;
SELECT * FROM ltreetest WHERE t <= '12.3' order by t asc;
SELECT * FROM ltreetest WHERE t = '12.3' order by t asc;
SELECT * FROM ltreetest WHERE t >= '12.3' order by t asc;
SELECT * FROM ltreetest WHERE t > '12.3' order by t asc;
drop index tstidx;
create index tstidx on ltreetest using gist (t);
set enable_seqscan=off;
SET
SELECT * FROM ltreetest WHERE t < '12.3' order by t asc;
SELECT * FROM ltreetest WHERE t <= '12.3' order by t asc;
SELECT * FROM ltreetest WHERE t = '12.3' order by t asc;
SELECT * FROM ltreetest WHERE t >= '12.3' order by t asc;
SELECT * FROM ltreetest WHERE t > '12.3' order by t asc;
SELECT * FROM ltreetest WHERE t @> '1.1.1' order by t asc;
SELECT * FROM ltreetest WHERE t <@ '1.1.1' order by t asc;
SELECT * FROM ltreetest WHERE t @ '23 & 1' order by t asc;
SELECT * FROM ltreetest WHERE t ~ '1.1.1.*' order by t asc;
SELECT * FROM ltreetest WHERE t ~ '*.1' order by t asc;
SELECT * FROM ltreetest WHERE t ~ '23.*{1}.1' order by t asc;
SELECT * FROM ltreetest WHERE t ~ '23.*.1' order by t asc;
SELECT * FROM ltreetest WHERE t ~ '23.*.2' order by t asc;
SELECT * FROM ltreetest WHERE t ? '{23.*.1,23.*.2}' order by t asc;
create table _ltreetest (t ltree[]);
\copy _ltreetest FROM 'data/_ltree.data'
SELECT count(*) FROM _ltreetest WHERE t @> '1.1.1' ;
SELECT count(*) FROM _ltreetest WHERE t <@ '1.1.1' ;
SELECT count(*) FROM _ltreetest WHERE t @ '23 & 1' ;
SELECT count(*) FROM _ltreetest WHERE t ~ '1.1.1.*' ;
SELECT count(*) FROM _ltreetest WHERE t ~ '*.1' ;
SELECT count(*) FROM _ltreetest WHERE t ~ '23.*{1}.1' ;
SELECT count(*) FROM _ltreetest WHERE t ~ '23.*.1' ;
SELECT count(*) FROM _ltreetest WHERE t ~ '23.*.2' ;
SELECT count(*) FROM _ltreetest WHERE t ? '{23.*.1,23.*.2}' ;
create index _tstidx on _ltreetest using gist (t);
set enable_seqscan=off;
SET
SELECT count(*) FROM _ltreetest WHERE t @> '1.1.1' ;
SELECT count(*) FROM _ltreetest WHERE t <@ '1.1.1' ;
SELECT count(*) FROM _ltreetest WHERE t @ '23 & 1' ;
SELECT count(*) FROM _ltreetest WHERE t ~ '1.1.1.*' ;
SELECT count(*) FROM _ltreetest WHERE t ~ '*.1' ;
SELECT count(*) FROM _ltreetest WHERE t ~ '23.*{1}.1' ;
SELECT count(*) FROM _ltreetest WHERE t ~ '23.*.1' ;
SELECT count(*) FROM _ltreetest WHERE t ~ '23.*.2' ;
SELECT count(*) FROM _ltreetest WHERE t ? '{23.*.1,23.*.2}' ;
ltree.sql: No such file or directory
ERROR: type "ltree" does not exist
LINE 1: SELECT ''::ltree;
^
ERROR: type "ltree" does not exist
LINE 1: SELECT '1'::ltree;
^
ERROR: type "ltree" does not exist
LINE 1: SELECT '1.2'::ltree;
^
ERROR: type "ltree" does not exist
LINE 1: SELECT '1.2._3'::ltree;
^
ERROR: function ltree2text("unknown") does not exist
LINE 1: SELECT ltree2text('1.2.3.34.sdf');
^
HINT: No function matches the given name and argument types. You may need to add explicit type casts.
ERROR: function text2ltree("unknown") does not exist
LINE 1: SELECT text2ltree('1.2.3.34.sdf');
^
HINT: No function matches the given name and argument types. You may need to add explicit type casts.
ERROR: function subltree("unknown", integer, integer) does not exist
LINE 1: SELECT subltree('Top.Child1.Child2',1,2);
^
HINT: No function matches the given name and argument types. You may need to add explicit type casts.
ERROR: function subpath("unknown", integer, integer) does not exist
LINE 1: SELECT subpath('Top.Child1.Child2',1,2);
^
HINT: No function matches the given name and argument types. You may need to add explicit type casts.
ERROR: function subpath("unknown", integer, integer) does not exist
LINE 1: SELECT subpath('Top.Child1.Child2',-1,1);
^
HINT: No function matches the given name and argument types. You may need to add explicit type casts.
ERROR: function subpath("unknown", integer, integer) does not exist
LINE 1: SELECT subpath('Top.Child1.Child2',0,-2);
^
HINT: No function matches the given name and argument types. You may need to add explicit type casts.
ERROR: function subpath("unknown", integer, integer) does not exist
LINE 1: SELECT subpath('Top.Child1.Child2',0,-1);
^
HINT: No function matches the given name and argument types. You may need to add explicit type casts.
ERROR: function subpath("unknown", integer, integer) does not exist
LINE 1: SELECT subpath('Top.Child1.Child2',0,0);
^
HINT: No function matches the given name and argument types. You may need to add explicit type casts.
ERROR: function subpath("unknown", integer, integer) does not exist
LINE 1: SELECT subpath('Top.Child1.Child2',1,0);
^
HINT: No function matches the given name and argument types. You may need to add explicit type casts.
ERROR: function subpath("unknown", integer) does not exist
LINE 1: SELECT subpath('Top.Child1.Child2',0);
^
HINT: No function matches the given name and argument types. You may need to add explicit type casts.
ERROR: function subpath("unknown", integer) does not exist
LINE 1: SELECT subpath('Top.Child1.Child2',1);
^
HINT: No function matches the given name and argument types. You may need to add explicit type casts.
ERROR: function index("unknown", "unknown") does not exist
LINE 1: SELECT index('1.2.3.4.5.6','1.2');
^
HINT: No function matches the given name and argument types. You may need to add explicit type casts.
ERROR: function index("unknown", "unknown") does not exist
LINE 1: SELECT index('a.1.2.3.4.5.6','1.2');
^
HINT: No function matches the given name and argument types. You may need to add explicit type casts.
ERROR: function index("unknown", "unknown") does not exist
LINE 1: SELECT index('a.1.2.3.4.5.6','1.2.3');
^
HINT: No function matches the given name and argument types. You may need to add explicit type casts.
ERROR: function index("unknown", "unknown") does not exist
LINE 1: SELECT index('a.1.2.3.4.5.6','1.2.3.j');
^
HINT: No function matches the given name and argument types. You may need to add explicit type casts.
ERROR: function index("unknown", "unknown") does not exist
LINE 1: SELECT index('a.1.2.3.4.5.6','1.2.3.j.4.5.5.5.5.5.5');
^
HINT: No function matches the given name and argument types. You may need to add explicit type casts.
ERROR: function index("unknown", "unknown") does not exist
LINE 1: SELECT index('a.1.2.3.4.5.6','1.2.3');
^
HINT: No function matches the given name and argument types. You may need to add explicit type casts.
ERROR: function index("unknown", "unknown") does not exist
LINE 1: SELECT index('a.1.2.3.4.5.6','6');
^
HINT: No function matches the given name and argument types. You may need to add explicit type casts.
ERROR: function index("unknown", "unknown") does not exist
LINE 1: SELECT index('a.1.2.3.4.5.6','6.1');
^
HINT: No function matches the given name and argument types. You may need to add explicit type casts.
ERROR: function index("unknown", "unknown") does not exist
LINE 1: SELECT index('a.1.2.3.4.5.6','5.6');
^
HINT: No function matches the given name and argument types. You may need to add explicit type casts.
ERROR: function index("unknown", "unknown") does not exist
LINE 1: SELECT index('0.1.2.3.5.4.5.6','5.6');
^
HINT: No function matches the given name and argument types. You may need to add explicit type casts.
ERROR: function index("unknown", "unknown", integer) does not exist
LINE 1: SELECT index('0.1.2.3.5.4.5.6.8.5.6.8','5.6',3);
^
HINT: No function matches the given name and argument types. You may need to add explicit type casts.
ERROR: function index("unknown", "unknown", integer) does not exist
LINE 1: SELECT index('0.1.2.3.5.4.5.6.8.5.6.8','5.6',6);
^
HINT: No function matches the given name and argument types. You may need to add explicit type casts.
ERROR: function index("unknown", "unknown", integer) does not exist
LINE 1: SELECT index('0.1.2.3.5.4.5.6.8.5.6.8','5.6',7);
^
HINT: No function matches the given name and argument types. You may need to add explicit type casts.
ERROR: function index("unknown", "unknown", integer) does not exist
LINE 1: SELECT index('0.1.2.3.5.4.5.6.8.5.6.8','5.6',-7);
^
HINT: No function matches the given name and argument types. You may need to add explicit type casts.
ERROR: function index("unknown", "unknown", integer) does not exist
LINE 1: SELECT index('0.1.2.3.5.4.5.6.8.5.6.8','5.6',-4);
^
HINT: No function matches the given name and argument types. You may need to add explicit type casts.
ERROR: function index("unknown", "unknown", integer) does not exist
LINE 1: SELECT index('0.1.2.3.5.4.5.6.8.5.6.8','5.6',-3);
^
HINT: No function matches the given name and argument types. You may need to add explicit type casts.
ERROR: function index("unknown", "unknown", integer) does not exist
LINE 1: SELECT index('0.1.2.3.5.4.5.6.8.5.6.8','5.6',-2);
^
HINT: No function matches the given name and argument types. You may need to add explicit type casts.
ERROR: function index("unknown", "unknown", integer) does not exist
LINE 1: SELECT index('0.1.2.3.5.4.5.6.8.5.6.8','5.6',-20000);
^
HINT: No function matches the given name and argument types. You may need to add explicit type casts.
ERROR: type "ltree" does not exist
LINE 1: SELECT 'Top.Child1.Child2'::ltree || 'Child3'::text;
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'Top.Child1.Child2'::ltree || 'Child3'::ltree;
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'Top_0'::ltree || 'Top.Child1.Child2'::ltree;
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'Top.Child1.Child2'::ltree || ''::ltree;
^
ERROR: type "ltree" does not exist
LINE 1: SELECT ''::ltree || 'Top.Child1.Child2'::ltree;
^
ERROR: function lca("unknown") does not exist
LINE 1: SELECT lca('{la.2.3,1.2.3.4.5.6,""}') IS NULL;
^
HINT: No function matches the given name and argument types. You may need to add explicit type casts.
ERROR: function lca("unknown") does not exist
LINE 1: SELECT lca('{la.2.3,1.2.3.4.5.6}') IS NULL;
^
HINT: No function matches the given name and argument types. You may need to add explicit type casts.
ERROR: function lca("unknown") does not exist
LINE 1: SELECT lca('{1.la.2.3,1.2.3.4.5.6}');
^
HINT: No function matches the given name and argument types. You may need to add explicit type casts.
ERROR: function lca("unknown") does not exist
LINE 1: SELECT lca('{1.2.3,1.2.3.4.5.6}');
^
HINT: No function matches the given name and argument types. You may need to add explicit type casts.
ERROR: function lca("unknown", "unknown") does not exist
LINE 1: SELECT lca('1.la.2.3','1.2.3.4.5.6');
^
HINT: No function matches the given name and argument types. You may need to add explicit type casts.
ERROR: function lca("unknown", "unknown") does not exist
LINE 1: SELECT lca('1.2.3','1.2.3.4.5.6');
^
HINT: No function matches the given name and argument types. You may need to add explicit type casts.
ERROR: function lca("unknown", "unknown") does not exist
LINE 1: SELECT lca('1.2.2.3','1.2.3.4.5.6');
^
HINT: No function matches the given name and argument types. You may need to add explicit type casts.
ERROR: function lca("unknown", "unknown", "unknown") does not exist
LINE 1: SELECT lca('1.2.2.3','1.2.3.4.5.6','');
^
HINT: No function matches the given name and argument types. You may need to add explicit type casts.
ERROR: function lca("unknown", "unknown", "unknown") does not exist
LINE 1: SELECT lca('1.2.2.3','1.2.3.4.5.6','2');
^
HINT: No function matches the given name and argument types. You may need to add explicit type casts.
ERROR: function lca("unknown", "unknown", "unknown") does not exist
LINE 1: SELECT lca('1.2.2.3','1.2.3.4.5.6','1');
^
HINT: No function matches the given name and argument types. You may need to add explicit type casts.
ERROR: type "lquery" does not exist
LINE 1: SELECT '1'::lquery;
^
ERROR: type "lquery" does not exist
LINE 1: SELECT '4|3|2'::lquery;
^
ERROR: type "lquery" does not exist
LINE 1: SELECT '1.2'::lquery;
^
ERROR: type "lquery" does not exist
LINE 1: SELECT '1.4|3|2'::lquery;
^
ERROR: type "lquery" does not exist
LINE 1: SELECT '1.0'::lquery;
^
ERROR: type "lquery" does not exist
LINE 1: SELECT '4|3|2.0'::lquery;
^
ERROR: type "lquery" does not exist
LINE 1: SELECT '1.2.0'::lquery;
^
ERROR: type "lquery" does not exist
LINE 1: SELECT '1.4|3|2.0'::lquery;
^
ERROR: type "lquery" does not exist
LINE 1: SELECT '1.*'::lquery;
^
ERROR: type "lquery" does not exist
LINE 1: SELECT '4|3|2.*'::lquery;
^
ERROR: type "lquery" does not exist
LINE 1: SELECT '1.2.*'::lquery;
^
ERROR: type "lquery" does not exist
LINE 1: SELECT '1.4|3|2.*'::lquery;
^
ERROR: type "lquery" does not exist
LINE 1: SELECT '*.1.*'::lquery;
^
ERROR: type "lquery" does not exist
LINE 1: SELECT '*.4|3|2.*'::lquery;
^
ERROR: type "lquery" does not exist
LINE 1: SELECT '*.1.2.*'::lquery;
^
ERROR: type "lquery" does not exist
LINE 1: SELECT '*.1.4|3|2.*'::lquery;
^
ERROR: type "lquery" does not exist
LINE 1: SELECT '1.*.4|3|2'::lquery;
^
ERROR: type "lquery" does not exist
LINE 1: SELECT '1.*.4|3|2.0'::lquery;
^
ERROR: type "lquery" does not exist
LINE 1: SELECT '1.*.4|3|2.*{1,4}'::lquery;
^
ERROR: type "lquery" does not exist
LINE 1: SELECT '1.*.4|3|2.*{,4}'::lquery;
^
ERROR: type "lquery" does not exist
LINE 1: SELECT '1.*.4|3|2.*{1,}'::lquery;
^
ERROR: type "lquery" does not exist
LINE 1: SELECT '1.*.4|3|2.*{1}'::lquery;
^
ERROR: type "lquery" does not exist
LINE 1: SELECT 'mailto:qwerty%@*.tu';::lquery;
^
ERROR: function nlevel("unknown") does not exist
LINE 1: SELECT nlevel('1.2.3.4');
^
HINT: No function matches the given name and argument types. You may need to add explicit type casts.
ERROR: type "ltree" does not exist
LINE 1: SELECT '1.2'::ltree < '2.2'::ltree;
^
ERROR: type "ltree" does not exist
LINE 1: SELECT '1.2'::ltree <= '2.2'::ltree;
^
ERROR: type "ltree" does not exist
LINE 1: SELECT '2.2'::ltree = '2.2'::ltree;
^
ERROR: type "ltree" does not exist
LINE 1: SELECT '3.2'::ltree >= '2.2'::ltree;
^
ERROR: type "ltree" does not exist
LINE 1: SELECT '3.2'::ltree > '2.2'::ltree;
^
ERROR: type "ltree" does not exist
LINE 1: SELECT '1.2.3'::ltree @> '1.2.3.4'::ltree;
^
ERROR: type "ltree" does not exist
LINE 1: SELECT '1.2.3.4'::ltree @> '1.2.3.4'::ltree;
^
ERROR: type "ltree" does not exist
LINE 1: SELECT '1.2.3.4.5'::ltree @> '1.2.3.4'::ltree;
^
ERROR: type "ltree" does not exist
LINE 1: SELECT '1.3.3'::ltree @> '1.2.3.4'::ltree;
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ 'a.b.c.d.e';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ 'A.b.c.d.e';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ 'A@.b.c.d.e';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'aa.b.c.d.e'::ltree ~ 'A@.b.c.d.e';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'aa.b.c.d.e'::ltree ~ 'A*.b.c.d.e';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'aa.b.c.d.e'::ltree ~ 'A*@.b.c.d.e';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'aa.b.c.d.e'::ltree ~ 'mailto:A*@|g.b.c.d.e';;
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'g.b.c.d.e'::ltree ~ 'mailto:A*@|g.b.c.d.e';;
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ 'a.b.c.d.e';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ 'a.*.e';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ 'a.*{3}.e';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ 'a.*{2}.e';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ 'a.*{4}.e';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ 'a.*{,4}.e';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ 'a.*{2,}.e';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ 'a.*{2,4}.e';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ 'a.*{2,3}.e';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ 'a.*{2,3}';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ 'a.*{2,4}';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ 'a.*{2,5}';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ '*{2,3}.e';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ '*{2,4}.e';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ '*{2,5}.e';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ '*.e';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ '*.e.*';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ '*.d.*';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ '*.a.*.d.*';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ '*.!d.*';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ '*.!d';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ '!d.*';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ '!a.*';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ '*.!e';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ '*.!e.*';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ 'a.*.!e';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ 'a.*.!d';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ 'a.*.!d.*';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ 'a.*.!f.*';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ '*.a.*.!f.*';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ '*.a.*.!d.*';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ '*.a.!d.*';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ '*.a.!d';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ 'a.!d.*';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ '*.a.*.!d.*';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ '*.!b.*';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ '*.!b.c.*';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ '*.!b.*.c.*';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ '!b.*.c.*';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ '!b.b.*';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ '!b.*.e';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ '!b.!c.*.e';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ '!b.*.!c.*.e';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ '*{2}.!b.*.!c.*.e';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ '*{1}.!b.*.!c.*.e';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ '*{1}.!b.*{1}.!c.*.e';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ 'a.!b.*{1}.!c.*.e';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ '!b.*{1}.!c.*.e';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ '*.!b.*{1}.!c.*.e';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ '*.!b.*.!c.*.e';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ '!b.!c.*';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ '!b.*.!c.*';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ '*{2}.!b.*.!c.*';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ '*{1}.!b.*.!c.*';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ '*{1}.!b.*{1}.!c.*';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ 'a.!b.*{1}.!c.*';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ '!b.*{1}.!c.*';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ '*.!b.*{1}.!c.*';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ~ '*.!b.*.!c.*';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'QWER_TY'::ltree ~ 'q%@*';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'QWER_TY'::ltree ~ 'Q_t%@*';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'QWER_GY'::ltree ~ 'q_t%@*';
^
ERROR: type "ltxtquery" does not exist
LINE 1: SELECT '!tree & aWdf@*'::ltxtquery;
^
ERROR: type "ltxtquery" does not exist
LINE 1: SELECT 'tree & aw_qw%*'::ltxtquery;
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'ltree.awdfg'::ltree @ '!tree & aWdf@*'::ltxtquery;
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'tree.awdfg'::ltree @ '!tree & aWdf@*'::ltxtquery;
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'tree.awdfg'::ltree @ '!tree | aWdf@*'::ltxtquery;
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'tree.awdfg'::ltree @ 'tree | aWdf@*'::ltxtquery;
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'tree.awdfg'::ltree @ 'tree & aWdf@*'::ltxtquery;
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'tree.awdfg'::ltree @ 'tree & aWdf@'::ltxtquery;
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'tree.awdfg'::ltree @ 'tree & aWdf*'::ltxtquery;
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'tree.awdfg'::ltree @ 'tree & aWdf'::ltxtquery;
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'tree.awdfg'::ltree @ 'tree & awdf*'::ltxtquery;
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'tree.awdfg'::ltree @ 'tree & aWdfg@'::ltxtquery;
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'tree.awdfg_qwerty'::ltree @ 'tree & aw_qw%*'::ltxtqu...
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'tree.awdfg_qwerty'::ltree @ 'tree & aw_rw%*'::ltxtqu...
^
ERROR: type "ltree[]" does not exist
LINE 1: SELECT '{1.2.3}'::ltree[] @> '1.2.3.4';
^
ERROR: type "ltree[]" does not exist
LINE 1: SELECT '{1.2.3.4}'::ltree[] @> '1.2.3.4';
^
ERROR: type "ltree[]" does not exist
LINE 1: SELECT '{1.2.3.4.5}'::ltree[] @> '1.2.3.4';
^
ERROR: type "ltree[]" does not exist
LINE 1: SELECT '{1.3.3}'::ltree[] @> '1.2.3.4';
^
ERROR: type "ltree[]" does not exist
LINE 1: SELECT '{5.67.8, 1.2.3}'::ltree[] @> '1.2.3.4';
^
ERROR: type "ltree[]" does not exist
LINE 1: SELECT '{5.67.8, 1.2.3.4}'::ltree[] @> '1.2.3.4';
^
ERROR: type "ltree[]" does not exist
LINE 1: SELECT '{5.67.8, 1.2.3.4.5}'::ltree[] @> '1.2.3.4';
^
ERROR: type "ltree[]" does not exist
LINE 1: SELECT '{5.67.8, 1.3.3}'::ltree[] @> '1.2.3.4';
^
ERROR: type "ltree[]" does not exist
LINE 1: SELECT '{1.2.3, 7.12.asd}'::ltree[] @> '1.2.3.4';
^
ERROR: type "ltree[]" does not exist
LINE 1: SELECT '{1.2.3.4, 7.12.asd}'::ltree[] @> '1.2.3.4';
^
ERROR: type "ltree[]" does not exist
LINE 1: SELECT '{1.2.3.4.5, 7.12.asd}'::ltree[] @> '1.2.3.4';
^
ERROR: type "ltree[]" does not exist
LINE 1: SELECT '{1.3.3, 7.12.asd}'::ltree[] @> '1.2.3.4';
^
ERROR: type "ltree[]" does not exist
LINE 1: SELECT '{ltree.asd, tree.awdfg}'::ltree[] @ 'tree & aWdfg@':...
^
ERROR: type "ltree[]" does not exist
LINE 1: SELECT '{j.k.l.m, g.b.c.d.e}'::ltree[] ~ 'mailto:A*@|g.b.c.d.e';;
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ? '{A.b.c.d.e}';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ? '{a.b.c.d.e}';
^
ERROR: type "ltree" does not exist
LINE 1: SELECT 'a.b.c.d.e'::ltree ? '{A.b.c.d.e, a.*}';
^
ERROR: type "ltree[]" does not exist
LINE 1: SELECT '{a.b.c.d.e,B.df}'::ltree[] ? '{A.b.c.d.e}';
^
ERROR: type "ltree[]" does not exist
LINE 1: SELECT '{a.b.c.d.e,B.df}'::ltree[] ? '{A.b.c.d.e,*.df}';
^
ERROR: type "ltree[]" does not exist
LINE 1: SELECT ('{3456,1.2.3.34}'::ltree[] ?@> '1.2.3.4') is null;
^
ERROR: type "ltree[]" does not exist
LINE 1: SELECT '{3456,1.2.3}'::ltree[] ?@> '1.2.3.4';
^
ERROR: type "ltree[]" does not exist
LINE 1: SELECT '{3456,1.2.3.4}'::ltree[] ?<@ '1.2.3';
^
ERROR: type "ltree[]" does not exist
LINE 1: SELECT ('{3456,1.2.3.4}'::ltree[] ?<@ '1.2.5') is null;
^
ERROR: type "ltree[]" does not exist
LINE 1: SELECT '{ltree.asd, tree.awdfg}'::ltree[] ?@ 'tree & aWdfg@'...
^
ERROR: type "ltree[]" does not exist
LINE 1: SELECT '{j.k.l.m, g.b.c.d.e}'::ltree[] ?~ 'mailto:A*@|g.b.c.d.e';;
^
ERROR: type "ltree" does not exist
LINE 1: CREATE TABLE ltreetest (t ltree);
^
data/ltree.data: No such file or directory
ERROR: relation "ltreetest" does not exist
ERROR: relation "ltreetest" does not exist
ERROR: relation "ltreetest" does not exist
ERROR: relation "ltreetest" does not exist
ERROR: relation "ltreetest" does not exist
ERROR: relation "ltreetest" does not exist
ERROR: relation "ltreetest" does not exist
ERROR: relation "ltreetest" does not exist
ERROR: relation "ltreetest" does not exist
ERROR: relation "ltreetest" does not exist
ERROR: relation "ltreetest" does not exist
ERROR: relation "ltreetest" does not exist
ERROR: relation "ltreetest" does not exist
ERROR: relation "ltreetest" does not exist
ERROR: relation "ltreetest" does not exist
ERROR: relation "ltreetest" does not exist
ERROR: relation "ltreetest" does not exist
ERROR: relation "ltreetest" does not exist
ERROR: relation "ltreetest" does not exist
ERROR: relation "ltreetest" does not exist
ERROR: index "tstidx" does not exist
ERROR: relation "ltreetest" does not exist
ERROR: relation "ltreetest" does not exist
ERROR: relation "ltreetest" does not exist
ERROR: relation "ltreetest" does not exist
ERROR: relation "ltreetest" does not exist
ERROR: relation "ltreetest" does not exist
ERROR: relation "ltreetest" does not exist
ERROR: relation "ltreetest" does not exist
ERROR: relation "ltreetest" does not exist
ERROR: relation "ltreetest" does not exist
ERROR: relation "ltreetest" does not exist
ERROR: relation "ltreetest" does not exist
ERROR: relation "ltreetest" does not exist
ERROR: relation "ltreetest" does not exist
ERROR: relation "ltreetest" does not exist
ERROR: type "ltree[]" does not exist
LINE 1: create table _ltreetest (t ltree[]);
^
data/_ltree.data: No such file or directory
ERROR: relation "_ltreetest" does not exist
ERROR: relation "_ltreetest" does not exist
ERROR: relation "_ltreetest" does not exist
ERROR: relation "_ltreetest" does not exist
ERROR: relation "_ltreetest" does not exist
ERROR: relation "_ltreetest" does not exist
ERROR: relation "_ltreetest" does not exist
ERROR: relation "_ltreetest" does not exist
ERROR: relation "_ltreetest" does not exist
ERROR: relation "_ltreetest" does not exist
ERROR: relation "_ltreetest" does not exist
ERROR: relation "_ltreetest" does not exist
ERROR: relation "_ltreetest" does not exist
ERROR: relation "_ltreetest" does not exist
ERROR: relation "_ltreetest" does not exist
ERROR: relation "_ltreetest" does not exist
ERROR: relation "_ltreetest" does not exist
ERROR: relation "_ltreetest" does not exist
ERROR: relation "_ltreetest" does not exist
while executing
"exec psql < /usr/local/src/postgresql-8.2.1/contrib/ltree/sql/ltree.sql"
("uplevel" body line 1)
invoked from within
"uplevel 1 $script"

Collapse
Posted by Gustaf Neumann on
ltree is basically an indexing method implemented in C, which is installed via the mentioned script. The C part has to be compiled and installed. Under unix systems, you do this via "make install" in the postgres ltree directory.

newer version of toc (in cvs head) do not require ltree (and work as well on oracle)

Collapse
Posted by Matthew Smith on
how do I access the cvs head to upgrade? I look around in the "Install Software" section of my local install but did not see it.

Thank you.

Collapse
Posted by Matthew Smith on
is the newer version you are referring to contained in the xowiki package? Or is it a separate install?

I was browsing through http://cvs.openacs.org/cvs/, is that the correct place to look? Where under there is the new version, if that is where to look?

Thank you.

Collapse
Posted by Gustaf Neumann on
The version of XoWiki, you are able to install depends on the version of OpenACS, you have installed. So, in a first step, you have to figure out, what version of OpenACS you have (look into http://YOURHOSTANDDOMAIN/acs-admin/apm , line with acs-kernel)

If you have at least OpenACS 5.3, then browse to http://YOURHOSTANDDOMAIN/acs-admin/install and click on "upgrade from repository", and you get the latest stable version installed.

Collapse
Posted by Matthew Smith on
Thank you, Gustaf. Good to know.