Skip to content

Conversation

@TiNnNnnn
Copy link

Videx For Postgresql

  1. Videx-for-pg is developing in the form of a PostgreSQL plugin.
  2. Currently, only copying of local statistical information is supported

Qucik Start

Step1: compile videx
  1. Copy the pg/videx folder to the contrib folder in your pg directory (such as postgresql17.5)
  2. Go into postgresql17.5/contirb/videx:
make && make install
Step2:register videx in pg
  1. Modify postgresql.conf:
shared_preload_libraries = 'videx'		# (change requires restart)
  1. Start your pg service and psql:
create extension videx;

Step3: use videx

  1. Create videx table using videx storage
CREATE TABLE V_REGION (
    R_REGIONKEY    SERIAL,
    R_NAME         CHAR(25),
    R_COMMENT      VARCHAR(152)
) USING VIDEX;
  1. Use self-function videx_analyze to copy statistics
SELECT videx_analyze('REGION'::regclass, 'V_REGION'::regclass)"
  1. Manually create same index like srouce table
  2. explain sqls

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


yuekunyu seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants