FDSA Resources

Create a New Dataset

NOTE: FDSA only supports PostgreSQL Databases, and the maximum size supported for schemas/datasets is 500 MB.

When adding a data source in FDSA, avoid using the root user's credentials and refrain from saving datasets under the 'public' schema. Follow these instructions:

  1. Login as root user (or whatever admin user you have) to your database server
    psql -h <HOST IP/url> -p <PORT> -U <user> postgres
  2. Create a new user (the one we are going to use to add the DB to FDSA)
    CREATE USER <username> WITH PASSWORD '<password>';

    Note: The <username> and <password> used here are the ones required when adding a Data Source.
  3. Give access to the new user
    ALTER USER <username> CREATEDB;

    ALTER USER <username> CREATEROLE;
  4. Exit and login with the new user:
    \q

    psql -h <HOST IP/url> -p <PORT> -U <username> postgres
  5. As “<username>”, create the data source DB and switch to it.
    CREATE DATABASE <test-database>;

    \c <test-database>
  6. Then create a schema/dataset and add your research data there:
    CREATE SCHEMA <test-dataset>; 

    IMPORTANT: Additionally, add tables with their respective columns, foreign keys, primary keys, and indexes in this schema, this is required to be able to execute queries/tasks with joins from the Query Builder Tool. The maximum size supported for schemas/datasets is 500 MB.