Update
This commit is contained in:
parent
2c591cb821
commit
a939e97451
@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
subdir = contrib/oid2name
|
subdir = contrib/oid2name
|
||||||
top_builddir = /pgtop/
|
top_builddir = ../..
|
||||||
include $(top_builddir)/src/Makefile.global
|
include $(top_builddir)/src/Makefile.global
|
||||||
|
|
||||||
override CPPFLAGS += -I$(libpq_srcdir)
|
override CPPFLAGS += -I$(libpq_srcdir)
|
||||||
|
@ -331,9 +331,9 @@ void sql_exec_dumptable(PGconn *conn, int systables)
|
|||||||
|
|
||||||
/* don't exclude the systables if this is set */
|
/* don't exclude the systables if this is set */
|
||||||
if(systables == 1)
|
if(systables == 1)
|
||||||
sprintf(todo, "select oid,relname from pg_class order by relname");
|
sprintf(todo, "select relfilenode,relname from pg_class order by relname");
|
||||||
else
|
else
|
||||||
sprintf(todo, "select oid,relname from pg_class where relname not like 'pg_%%' order by relname");
|
sprintf(todo, "select relfilenode,relname from pg_class where relname not like 'pg_%%' order by relname");
|
||||||
|
|
||||||
sql_exec(conn, todo, NULL);
|
sql_exec(conn, todo, NULL);
|
||||||
}
|
}
|
||||||
@ -348,7 +348,7 @@ void sql_exec_searchtable(PGconn *conn, char *tablename)
|
|||||||
todo = (char *) malloc (1024);
|
todo = (char *) malloc (1024);
|
||||||
|
|
||||||
/* get the oid and tablename where the name matches tablename */
|
/* get the oid and tablename where the name matches tablename */
|
||||||
sprintf(todo, "select oid,relname from pg_class where relname = '%s'", tablename);
|
sprintf(todo, "select relfilenode,relname from pg_class where relname = '%s'", tablename);
|
||||||
|
|
||||||
returnvalue = sql_exec(conn, todo, 1);
|
returnvalue = sql_exec(conn, todo, 1);
|
||||||
|
|
||||||
@ -372,7 +372,7 @@ void sql_exec_searchoid(PGconn *conn, int oid)
|
|||||||
|
|
||||||
todo = (char *) malloc (1024);
|
todo = (char *) malloc (1024);
|
||||||
|
|
||||||
sprintf(todo, "select oid,relname from pg_class where oid = %i", oid);
|
sprintf(todo, "select relfilenode,relname from pg_class where oid = %i", oid);
|
||||||
|
|
||||||
returnvalue = sql_exec(conn, todo, 1);
|
returnvalue = sql_exec(conn, todo, 1);
|
||||||
|
|
||||||
|
@ -15,10 +15,11 @@ The information about GIST is at
|
|||||||
<ULink url="http://GiST.CS.Berkeley.EDU:8000/gist/">http://GiST.CS.Berkeley.EDU:8000/gist/</ULink>
|
<ULink url="http://GiST.CS.Berkeley.EDU:8000/gist/">http://GiST.CS.Berkeley.EDU:8000/gist/</ULink>
|
||||||
|
|
||||||
with more on different indexing and sorting schemes at
|
with more on different indexing and sorting schemes at
|
||||||
<ULink url="http://s2k-ftp.CS.Berkeley.EDU:8000/personal/jmh/">http://s2k-ftp.CS.Berkeley.EDU:8000/personal/jmh/</ULink>
|
<ULink url="http://s2k-ftp.CS.Berkeley.EDU:8000/personal/jmh/">http://s2k-ftp.CS.Berkeley.EDU:8000/personal/jmh/</ULink>.
|
||||||
|
|
||||||
And there is more interesting reading at the Berkely database site at
|
And there is more interesting reading at
|
||||||
<ULink url="http://epoch.cs.berkeley.edu:8000/">http://epoch.cs.berkeley.edu:8000/</ULink>.
|
<ULink url="http://epoch.cs.berkeley.edu:8000/">http://epoch.cs.berkeley.edu:8000/</ULink> and
|
||||||
|
<ULink url="http://www.sai.msu.su/~megera/postgres/gist/">http://www.sai.msu.su/~megera/postgres/gist/</ULink>.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<Para>
|
<Para>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user