SóProvas


ID
1211149
Banca
FCC
Órgão
TRT - 5ª Região (BA)
Ano
2013
Provas
Disciplina
Banco de Dados
Assuntos

No PostgreSQL, a função utilizada para obter informações sobre arquivos é chamada

Alternativas
Comentários
  • Alternativa letra C).
    Na página do postgres encontrei os seguintes comandos:


    pg_ls_dir = List the contents of a directory;


    pg_read_file = Return the contents of a text file;


    pg_stat_file = Return information about a file;


    http://www.postgresql.org/docs/8.1/static/functions-admin.html


  • Letra C.

     

    pg_stat_file returns a record containing the file size, last accessed time stamp, last modified time stamp, last file status change time stamp (Unix platforms only), file creation timestamp (Windows only), and a boolean indicating if it is a directory.

    Typical usages include:

    SELECT * FROM pg_stat_file('filename');

    SELECT (pg_stat_file('filename')).modification;

     

    https://www.postgresql.org/docs/8.1/static/functions-admin.html