Skip to content

Commit

Permalink
Fix typos in docs and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
weiwch authored and rjuju committed Aug 23, 2023
1 parent e716f34 commit 4605029
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -64,9 +64,9 @@ a future release.
You can check the available hypothetical indexes in your own backend:

rjuju=# SELECT * FROM hypopg_list_indexes ;
indexrelid | indexname | nspname | relname | amname
-----------+-------------------------------------------+---------+---------+--------
205101 | <41072>btree_hypo_id | public | hypo | btree
indexrelid | index_name | schema_name | table_name | am_name
------------+-------------------------------+-------------+------------+---------
50573 | <50573>btree_hypo_id | public | hypo | btree


If you need more technical information on the hypothetical indexes, the
Expand Down
22 changes: 11 additions & 11 deletions docs/usage.rst
Expand Up @@ -182,9 +182,9 @@ Some other convenience functions and views are available:
.. code-block:: psql
SELECT * FROM hypopg_list_indexes ;
indexrelid | indexname | nspname | relname | amname
------------+----------------------+---------+---------+--------
18284 | <18284>btree_hypo_id | public | hypo | btree
indexrelid | index_name | schema_name | table_name | am_name
------------+-----------------------+-------------+------------+---------
18284 | <18284>btree_hypo_id | public | hypo | btree
(1 row)
- **hypopg()**: function that lists all hypothetical indexes that have
Expand All @@ -203,22 +203,22 @@ Some other convenience functions and views are available:

.. code-block:: psql
SELECT indexname, hypopg_get_indexdef(indexrelid) FROM hypopg_list_indexes ;
indexname | hypopg_get_indexdef
----------------------+----------------------------------------------
<18284>btree_hypo_id | CREATE INDEX ON public.hypo USING btree (id)
SELECT index_name, hypopg_get_indexdef(indexrelid) FROM hypopg_list_indexes ;
index_name | hypopg_get_indexdef
-----------------------+----------------------------------------------
<18284>btree_hypo_id | CREATE INDEX ON public.hypo USING btree (id)
(1 row)
- **hypopg_relation_size(oid)**: function that estimates how big a hypothetical
index would be:

.. code-block:: psql
SELECT indexname, pg_size_pretty(hypopg_relation_size(indexrelid))
SELECT index_name, pg_size_pretty(hypopg_relation_size(indexrelid))
FROM hypopg_list_indexes ;
indexname | pg_size_pretty
----------------------+----------------
<18284>btree_hypo_id | 2544 kB
index_name | pg_size_pretty
-----------------------+----------------
<18284>btree_hypo_id | 2544 kB
(1 row)
- **hypopg_drop_index(oid)**: function that removes the given hypothetical
Expand Down

0 comments on commit 4605029

Please sign in to comment.