You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
392 B

  1. 1. create "seaweedfs" database
  2. export PGHOME=/Library/PostgreSQL/10
  3. $PGHOME/bin/createdb --username=postgres --password seaweedfs
  4. 2. create "filemeta" table
  5. $PGHOME/bin/psql --username=postgres --password seaweedfs
  6. CREATE TABLE IF NOT EXISTS filemeta (
  7. dirhash BIGINT,
  8. name VARCHAR(1000),
  9. directory VARCHAR(4096),
  10. meta bytea,
  11. PRIMARY KEY (dirhash, name)
  12. );